|
Post by KlangManipulation on Mar 20, 2014 22:39:08 GMT 1
Can someone tell me how to convert text to float? also i do know nothing about midi-modules... i hope i can learn it soon.
|
|
|
Post by Rob on Mar 21, 2014 7:36:48 GMT 1
|
|
|
Post by KlangManipulation on Mar 21, 2014 12:22:10 GMT 1
i tried a lot of examples like this with the same result... not working. also i dont understand why functions are not working although i include the libraries they need. char s[100] ="4.0800" ; printf("float value : %4.8f\n" ,(float) atoll(s)); atoll is unknown so i tried this: printf("float value : %4.8f\n" ,(float) atof(s)); but the biggest problem is how to integrate my textinputpin because if i try: char s[100] = textinputpin ; i get an error. if i use the original example an send the float "value" to a floatoutputpin like this: char s[100] ="4.0800" ; printf("float value : %4.8f\n" ,(float) atof(s)); outputpin = value i dont get the result 4.0800  ps: maybe we should move this part of thread to sdk3/tutorials section.
|
|
|
Post by Rob on Mar 21, 2014 16:50:48 GMT 1
|
|
|
Post by KlangManipulation on Mar 21, 2014 22:20:16 GMT 1
Thanks Rob, i will take a look soon... and just for setronic.... tadaaaaa www.klangmanipulation.de/indexsynthedit.html  a Trigger Pack. passes input to output if booltrigger is true. Gui-Modules can trigger in selected direction. i also did some DSP-Trigger Modules. maybe its usefull for someone 
|
|
|
Post by KlangManipulation on Mar 23, 2014 21:44:12 GMT 1
wstring s1 = pinText1; not working 
|
|
|
Post by Rob on Mar 24, 2014 12:32:22 GMT 1
|
|
|
Post by Rob on Mar 24, 2014 17:58:32 GMT 1
wstring s1 = pinText1; not working  #include <string> /* wstring */ using namespace std; /* use wstring instead of std::wstring */
|
|
|
Post by Rob on Mar 24, 2014 22:47:31 GMT 1
|
|
|
Post by KlangManipulation on Mar 26, 2014 15:27:58 GMT 1
thanks for the help
|
|