ArrayArrayArrayArrayArrayArray
BrainModularBrainModular Users Forum2009-08-01T13:49:06+02:00https://brainmodular.org/forums/app.php/feed/topic/16622009-08-01T13:49:06+02:002009-08-01T13:49:06+02:00https://brainmodular.org/forums/viewtopic.php?t=1662&p=9861#p9861Statistics: Posted by pansoul — 01 Aug 2009, 13:49
]]>
2009-07-31T23:29:08+02:002009-07-31T23:29:08+02:00https://brainmodular.org/forums/viewtopic.php?t=1662&p=9857#p9857Statistics: Posted by bsork — 31 Jul 2009, 23:29
]]>2009-07-31T17:00:38+02:002009-07-31T17:00:38+02:00https://brainmodular.org/forums/viewtopic.php?t=1662&p=9855#p9855i load a wav 16 bits stereo file as a binary file and obtain list of char. i try to decode value i obtain ( from -128 to 127) using this format http://sub0.developpez.com/FormatWAV/FormatWAV.htm it works a little ( i mean not with all file) so i don't know where is the problem (format file ? but all my files are 16 bits stereo) i transform the amplitude of sample into [-1; 1] interval to feed the buffer output using double precision variable. i suppose that it's the good way. i will try others technics waiting for new sdk. thanks
Statistics: Posted by pansoul — 31 Jul 2009, 17:00
]]>2009-07-16T11:24:49+02:002009-07-16T11:24:49+02:00https://brainmodular.org/forums/viewtopic.php?t=1662&p=9734#p9734and also, the next version of the SDK will include a complete library to manage audio files and much more. we are working on!
]]>2009-07-16T09:42:42+02:002009-07-16T09:42:42+02:00https://brainmodular.org/forums/viewtopic.php?t=1662&p=9732#p9732 Happy to see you are around the SDK
Need some precisions about you'r question.
Do you want to play an external sound file (external from usine and loaded by code) ?
in this case, you effectively need to do it by yourself, as usine didn't expose this kind of functionality for now.
you can look at the stream C++ class, at binary section or make it the C way with the FILE object and related functions.
Hope it help
PS : the wiki isn't updated for the new SDK version yet :/ but if you produce a nice simple example of loading external sound file, it should go in
Statistics: Posted by martignasse — 16 Jul 2009, 09:42
]]>2009-07-16T02:18:25+02:002009-07-16T02:18:25+02:00https://brainmodular.org/forums/viewtopic.php?t=1662&p=9730#p9730First thank you for the new sdk and the example it contains. i have a question about playing a sample. i suppose that the way to do that is to write in the buffer. my problem i need a function to read a file at the byte level to feed the buffer and it seems that there is no such a function in windows.h. I belive that C++ programmers use library like libsoundfile or OpenAL, but what about the use of library in usine ?
Statistics: Posted by pansoul — 16 Jul 2009, 02:18
]]>BrainModularBrainModular Users Forum2009-08-01T13:49:06+02:00https://brainmodular.org/forums/app.php/feed/topic/16622009-08-01T13:49:06+02:002009-08-01T13:49:06+02:00https://brainmodular.org/forums/viewtopic.php?t=1662&p=9861#p9861Statistics: Posted by pansoul — 01 Aug 2009, 13:49
]]>2009-07-31T23:29:08+02:002009-07-31T23:29:08+02:00https://brainmodular.org/forums/viewtopic.php?t=1662&p=9857#p9857Statistics: Posted by bsork — 31 Jul 2009, 23:29
]]>2009-07-31T17:00:38+02:002009-07-31T17:00:38+02:00https://brainmodular.org/forums/viewtopic.php?t=1662&p=9855#p9855i load a wav 16 bits stereo file as a binary file and obtain list of char. i try to decode value i obtain ( from -128 to 127) using this format http://sub0.developpez.com/FormatWAV/FormatWAV.htm it works a little ( i mean not with all file) so i don't know where is the problem (format file ? but all my files are 16 bits stereo) i transform the amplitude of sample into [-1; 1] interval to feed the buffer output using double precision variable. i suppose that it's the good way. i will try others technics waiting for new sdk. thanks
Statistics: Posted by pansoul — 31 Jul 2009, 17:00
]]>2009-07-16T11:24:49+02:002009-07-16T11:24:49+02:00https://brainmodular.org/forums/viewtopic.php?t=1662&p=9734#p9734and also, the next version of the SDK will include a complete library to manage audio files and much more. we are working on!
]]>2009-07-16T09:42:42+02:002009-07-16T09:42:42+02:00https://brainmodular.org/forums/viewtopic.php?t=1662&p=9732#p9732 Happy to see you are around the SDK
Need some precisions about you'r question.
Do you want to play an external sound file (external from usine and loaded by code) ?
in this case, you effectively need to do it by yourself, as usine didn't expose this kind of functionality for now.
you can look at the stream C++ class, at binary section or make it the C way with the FILE object and related functions.
Hope it help
PS : the wiki isn't updated for the new SDK version yet :/ but if you produce a nice simple example of loading external sound file, it should go in
Statistics: Posted by martignasse — 16 Jul 2009, 09:42
]]>2009-07-16T02:18:25+02:002009-07-16T02:18:25+02:00https://brainmodular.org/forums/viewtopic.php?t=1662&p=9730#p9730First thank you for the new sdk and the example it contains. i have a question about playing a sample. i suppose that the way to do that is to write in the buffer. my problem i need a function to read a file at the byte level to feed the buffer and it seems that there is no such a function in windows.h. I belive that C++ programmers use library like libsoundfile or OpenAL, but what about the use of library in usine ?
Statistics: Posted by pansoul — 16 Jul 2009, 02:18