pouët.net

Go to bottom

help with ksynth-v2 and PureBasic

category: code [glöplog]
 
here is a prod:
http://www.pouet.net/prod.php?which=21045

I am using PureBasic:
Code: ImportC "ksynth.lib" sa As "?sample@@3PAEA" mi As "?mixers@@3PAEA" pol As "?poly_channel@@3PAEA" pat As "?pattern@@3PAEA" EC_NO.i As "?ECART_NOTE@@3IA" Init_KSynth(w0.l) As "?Init_KSynth@@YAXXZ" Update_KSynth(w1.l) As "?Update_KSynth@@YA_NXZ" EndImport Procedure do4KIntro() dd=Update_KSynth(0) glClear_(#GL_DEPTH_BUFFER_BIT | #GL_COLOR_BUFFER_BIT); glRotatef_(0.5,1.0,1.0,1.0); glBegin_(#GL_TRIANGLES); glColor3f_(1.0,0.0,0.0); glVertex3f_(0.0,-1.0,0.0); glColor3f_(0.0,1.0,0.0); glVertex3f_(1.0,1.0,0.0); glColor3f_(0.0,0.0,1.0); glVertex3f_(-1.0,1.0,0.0); glEnd_(); EndProcedure


during "Compile Executable" i've got a message:
Code: POLINK: error: Unresolved external symbol '?poly_channel@@3PAEA'. POLINK: error: Unresolved external symbol '?mixers@@3PAEA'. POLINK: error: Unresolved external symbol '?pattern@@3PAEA'. POLINK: error: Unresolved external symbol '?sample@@3PAEA'. POLI


how to resolve one?

thanks.
...really. Why ksynth? Use 4klang.
added on the 2012-04-26 12:41:22 by xTr1m xTr1m
Quote:
...really. Why ksynth? Use 4klang.

someone said 4klang isn't easy to compouse tune.
ksynth is great if you dont want the result to be musical.
added on the 2012-04-26 13:48:09 by Gargaj Gargaj
There's a PureBasic wrapper for 4Klang in the first post in this thread on the DBF Forum. Might he useful for you.
added on the 2012-04-26 14:24:44 by raizor raizor
Quote:
ksynth is great if you dont want the result to be musical.

jf course i want music, ksynth probably a good add-on to 4k intro framework.
seems like
Code: ImportC "intro.obj" EndImport

is solution, but...i have music and white screen instead OpenGL.

i'm so n00b(
suck, whatr happened w/untergrund again?(no link to download and test(
mail sent
added on the 2012-04-27 21:00:16 by skarab skarab
@skarab: 10x fo reply
@Android Barker: What they're trying to say is that ksynth is a pretty poor synth, and that it's downright hard to make good 4k music with it.
added on the 2012-04-28 12:08:04 by Sesse Sesse
Quote:
and that it's downright hard to make good 4k music with it.


at least 4klang isn't easy to make music. hope, I'll find solution.
Hello, as stated in your mail there is a hacked solution, maybe someone will find a better way to export those symbols easily from purebasic...
Anyway, I agree with comments here, KSynth is a relatively poor synthetizer done in few weeks, 6 years ago, made because I was suffering to find a usable one and I need it, just released it for the utopie that I wrongly thought the scene was about...
Maybe it has changed since...
Just to state, the only music in few Ko coming near the demoscene that I liked was a simple test done by "Beta" using few oscillators, "welcome to california", which one deserved awards, I keep it and play it everytime I need to remember why I came here...
added on the 2012-04-29 23:09:58 by skarab skarab
@skarab: thank you again!
well, after 4klang, all i have is executable 18944 bytes. I dunno how to build .obj file and compact intro, kkrunchy reduce to 6144, no crinkler((
any ideas?
@relias abardon: bad idea
perhaps posting about morons and faggots solves your problem. already tried that? :P
added on the 2012-05-04 13:15:44 by v3nom v3nom
Quote:
perhaps posting about morons and faggots solves your problem. already tried that? :P


try what? morons just say "fuck off".
i've found solution "how to build PB .obj", the matter in the crinkler, some unresolved things...
finally headshot:
Quote:
: error: LNK 0: import HeapAlloc from kernel32 uses forwarded RVA. This featu
re is not supported by crinkler (yet)
Do you have any control over all the "groundwork" that purebasic provides? Such as that call to HeapAlloc? Can you see the generated assembler code? If not, then I've got BB Image for you...
added on the 2012-05-04 17:57:42 by xTr1m xTr1m
http://glair.narod.ru/temp/f4klang.rar

finally!

that's not an intro, of course...
Traitor :)
Nice, it sounds good and lets you 2k for effects coding!
added on the 2012-05-05 21:08:57 by skarab skarab
@skarab: sorry, man, i loose fight with the k-synth, but it still da best. hope, i'll se suitable .lib.
maybe...

login

Go to top