generate digital audio: tones, etc.

T

Terry Michaels

I want to play around with writing Ruby scripts that generate electronic
music. That is, my program generates tones, waves, beats, et cetera, and
sends them to the sound device.

I've played around for an hour or two on my Linux box, generating 8-bit
waves and shunting them to /dev/dsp. This is fun, but is there a Ruby
project that already has the notes and effects and so forth? My google
searches didn't turn up anything.

Only Linux compatibility is required. ALSA is my main audio system, with
the OSS compatibility device available.
 
J

Justin Collins

I want to play around with writing Ruby scripts that generate electronic
music. That is, my program generates tones, waves, beats, et cetera, and
sends them to the sound device.

I've played around for an hour or two on my Linux box, generating 8-bit
waves and shunting them to /dev/dsp. This is fun, but is there a Ruby
project that already has the notes and effects and so forth? My google
searches didn't turn up anything.

Only Linux compatibility is required. ALSA is my main audio system, with
the OSS compatibility device available.
You could try bloopsaphone: https://github.com/mental/bloopsaphone

A quick search on github might find related/better stuff.

-Justin
 
T

Terry Michaels

Bloopsaphone looks great. Only thing I haven't figured out yet: Is it
possible to produce a "dotted note", for example, a dotted-quarter note
that lasts for 3/8 of a measure?

In regular rtttl you would do this by just placing a dot after the note
description, but this doesn't seem to work in Bloopsaphone. Wanted to
ask the original author (who mysteriously calls himself "why the lucky
stiff" in his source code) but he didn't leave a solid trail to follow.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,997
Messages
2,570,241
Members
46,831
Latest member
RusselWill

Latest Threads

Top