I occasionally tinker with sound synthesis in my spare time and, seeing that Scheme would probably be a good language to do this with, I'm curious to know if there are any APIs for Gambit that allow the production of sound output.
If not, could anyone tell me if there is a simple way of importing a C function that takes, say, a pointer to an array of floats as an argument, so I can write and import my own C audio output function. I'd ideally like to present it as a function that takes a list of numerical values (audio samples) as input.
- Maxime
Afficher les réponses par date
I wrapped the OpenAL library sometime last year. I can dig that out and send it to you if you would like.
On Thu, Mar 24, 2011 at 4:48 PM, chevalma@iro.umontreal.ca wrote:
I occasionally tinker with sound synthesis in my spare time and, seeing that Scheme would probably be a good language to do this with, I'm curious to know if there are any APIs for Gambit that allow the production of sound output.
If not, could anyone tell me if there is a simple way of importing a C function that takes, say, a pointer to an array of floats as an argument, so I can write and import my own C audio output function. I'd ideally like to present it as a function that takes a list of numerical values (audio samples) as input.
- Maxime
Gambit-list mailing list Gambit-list@iro.umontreal.ca https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list
I wrapped the OpenAL library sometime last year. I can dig that out and send it to you if you would like.
Please, use the dumping grounds!!
I'd be more than happy to se more audio/video libraries for Gambit, for I too often want to do such processing.
Cheers,
P!
Frederick -- I'd love to use your wrapped OpenAL library too. Please send me copy or point me to it on the web.
Thanks so much.
Best, Jason
On Sun, Mar 27, 2011 at 9:41 AM, Adrien Piérard pierarda@iro.umontreal.cawrote:
I wrapped the OpenAL library sometime last year. I can dig that out and send it to you if you would like.
Please, use the dumping grounds!!
I'd be more than happy to se more audio/video libraries for Gambit, for I too often want to do such processing.
Cheers,
I've uploaded my OpenAL wrapper to the dumping grounds. The documentation is scarce but feel free to email me about it if you have any questions.
On Sun, Mar 27, 2011 at 7:41 AM, Adrien Piérard pierarda@iro.umontreal.ca wrote:
I wrapped the OpenAL library sometime last year. I can dig that out and send it to you if you would like.
Please, use the dumping grounds!!
I'd be more than happy to se more audio/video libraries for Gambit, for I too often want to do such processing.
Cheers,
P!
-- Français, English, 日本語, 한국어
Here's an example using both the OpenAL and libmpg123 wrappers I uploaded.
On Sun, Mar 27, 2011 at 10:29 PM, Frederick LeMaster fred.lemaster@gmail.com wrote:
I've uploaded my OpenAL wrapper to the dumping grounds. The documentation is scarce but feel free to email me about it if you have any questions.
On Sun, Mar 27, 2011 at 7:41 AM, Adrien Piérard pierarda@iro.umontreal.ca wrote:
I wrapped the OpenAL library sometime last year. I can dig that out and send it to you if you would like.
Please, use the dumping grounds!!
I'd be more than happy to se more audio/video libraries for Gambit, for I too often want to do such processing.
Cheers,
P!
-- Français, English, 日本語, 한국어
I mentionned Supercollider to you once.
Here's a R6RS library for it http://slavepianos.org/rd/f/149683/
On Thu, Mar 24, 2011 at 7:48 PM, chevalma@iro.umontreal.ca wrote:
I occasionally tinker with sound synthesis in my spare time and, seeing that Scheme would probably be a good language to do this with, I'm curious to know if there are any APIs for Gambit that allow the production of sound output.
If not, could anyone tell me if there is a simple way of importing a C function that takes, say, a pointer to an array of floats as an argument, so I can write and import my own C audio output function. I'd ideally like to present it as a function that takes a list of numerical values (audio samples) as input.
- Maxime
Gambit-list mailing list Gambit-list@iro.umontreal.ca https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list
I installed MinGW and Gambit 4.6.0 (prebuilt) and when I run ./jam to build JazzScheme, I get the following: sh-3.1$ ./jam JazzScheme needs Gambit-Jazz version 406000 stamp 20101102194246 or higher to build See INSTALL for details on installing the latest version of Gambit sh-3.1$
Not sure where to go from here.
Steve
If you're into scheme I highly recommend checking out Snd-RT. it's a bit of a pain to set up but you can do fun things like per-sample DSP calculations in a Scheme-based DSL and edit/compile/load them on the fly while sound is still playing.
Steve
On Thu, Mar 24, 2011 at 7:48 PM, chevalma@iro.umontreal.ca wrote:
I occasionally tinker with sound synthesis in my spare time and, seeing that Scheme would probably be a good language to do this with, I'm curious to know if there are any APIs for Gambit that allow the production of sound output.
If not, could anyone tell me if there is a simple way of importing a C function that takes, say, a pointer to an array of floats as an argument, so I can write and import my own C audio output function. I'd ideally like to present it as a function that takes a list of numerical values (audio samples) as input.
- Maxime
Gambit-list mailing list Gambit-list@iro.umontreal.ca https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list
I kind of want to roll my own, it's part of the fun, hence the question about the FFI.
A further question I have about the FFI is whether it's easy or not to use externally linked C functions while in the shell. Do you have to recompile the shell itself to do that?
- Maxime
On 11-03-24 10:24 PM, Stephen Sinclair wrote:
If you're into scheme I highly recommend checking out Snd-RT. it's a bit of a pain to set up but you can do fun things like per-sample DSP calculations in a Scheme-based DSL and edit/compile/load them on the fly while sound is still playing.
Steve
On Thu, Mar 24, 2011 at 7:48 PM,chevalma@iro.umontreal.ca wrote:
I occasionally tinker with sound synthesis in my spare time and, seeing that Scheme would probably be a good language to do this with, I'm curious to know if there are any APIs for Gambit that allow the production of sound output.
If not, could anyone tell me if there is a simple way of importing a C function that takes, say, a pointer to an array of floats as an argument, so I can write and import my own C audio output function. I'd ideally like to present it as a function that takes a list of numerical values (audio samples) as input.
- Maxime
Gambit-list mailing list Gambit-list@iro.umontreal.ca https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list
Gambit-list mailing list Gambit-list@iro.umontreal.ca https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list
On 2011-03-25, at 10:44 AM, Maxime Chevalier-Boisvert wrote:
I kind of want to roll my own, it's part of the fun, hence the question about the FFI.
A further question I have about the FFI is whether it's easy or not to use externally linked C functions while in the shell. Do you have to recompile the shell itself to do that?
No. You just recompile the Scheme file containing the FFI interface (and link it to the C libs it needs). This produces a "dynamically loadable object file" such as "mystuff.o1". Then, at the REPL, you just (load "mystuff").
Marc