freenode/#lisp - IRC Chatlog
Search
3:52:12
slondr
Like, I want to do something along the lines of (play 'C) and hear a C note from my computer
4:01:02
Xach
slondr: i wish i could suggest something, but it's not an area i know anything about when it comes to CL.
4:01:21
Xach
and those who might know may be asleep! but maybe a q on reddit or stackoverflow would get an answer eventually.
4:07:29
moon-child
slondr: nothing that I know of, but I bet you could build something pretty easily off of oss
4:08:53
moon-child
sin waves are easy to construct. A4 is (usually) 440Hz, and you scale by increments of 2^1/12
4:11:39
beach
slondr: I am sure there are systems that use the MIDI interface. OpenMusic must be doing something like that.
4:11:50
moon-child
didn't mean to imply that it was; just thought that you were. What midi interface were you referring to?
4:13:39
moon-child
I think that's for interacting with midi hardware devices; both input and output, but not a regular speaker
4:15:36
slondr
Although if there's nothing that does precisely what I'd like, it may be worth the extra effort
4:18:26
moon-child
slondr: a little googling suggests https://ccrma.stanford.edu/software/snd/snd/clm.html
4:19:18
edgar-rft
slondr: don't know how much it is maintained but looks reasonably simple -> https://www.cliki.net/sb-simple-audio
4:20:22
edgar-rft
slondr: another alternative would be -> https://filonenko-mikhail.github.io/cl-portaudio/
4:24:19
slondr
My use case is I have some other function that generates note sequences, eg (E G B A C), I just want to hear what that sequence sounds like, preferably without defining instruments or dealing with frequences and all that other stuff
4:25:35
beach
slondr: That's a very specific use case that you can't expect to have a pre-existing library for.
4:25:54
beach
slondr: Normally, you would want to know the instrument, the duration, the volume, etc.