Subscribe

2015-07-30 Thread Patrick Langford
Hello Patrick Langford  :-)
You are now subscribed


-- 
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe


Re: Open Sound Control

2015-07-30 Thread Thorsten Jolitz
Robert Herman 
writes:

Hi Rob,

> I have come the long way round to PicoLisp, and I have been tinkering
> with livecoding (audio/video, not just programming) for fun.
>
> I started with fluxus: www.pawfal.org/fluxus/
> It is a great environment where you code and 3D objects show behind
> your code, and you can drive their parameters from an audio feed or
> file. It was written in a scheme which is now Racket.
>
> I am not a fan of clojure, so I only tried overtone, which is a
> Clojure wrapper for the Supercollider sound server. They also copied
> Shadertoy with their 'Shadertone' which allows for the graphics part
> of the livecoding of music and graphics.

What I see in the livecoding scene is the combination of rather complex
programming with rather simplistic music - relentless techno beats ;-)
I would like it the other way around.

> I personally like Extempore, but I couldn't get it built on my Windows
> machine, the OS X install had some issues with Jack and timing, and my
> Linux distro had a few issues too. All in all, it is very complete and
> complex, but too much fuss for my skills.
> http://extempore.moso.com.au/

If it takes days to make it run it looses attraction ...

> I have been sticking with learning PicoLisp, and I would like to
> somehow get it to work with Grace (a single cross-platform executable,
> that you program music pieces in a Scheme or simplified Scheme called
> Sal). http://commonmusic.sourceforge.net/
> Grace or CM lacks a video creation component or library. I was hoping
> to hook into the CM libraries with PicoLisp, and then use Alex's z3d.l
> library to do graphics in PicoLisp. I am not near enough of a
> programmer to do so, only aware that it can be done (I think?).
>
> Livecoding video and audio in a Lisp! Pure heaven...maybe CEPL in
> PicoLisp??? https://www.youtube.com/watch?v=I0kWZP9L9Kc

What would be the minimalistic setup? A midi cmdline tool or a C shared
library that can be called from PicoLisp?
Or would Supercollider be the easiest thing to work with, now that the
OSC Protocol is implemented in PicoLIsp? 

> Have fun!
>
> Rob
>
> On Thu, Jul 30, 2015 at 1:26 PM, Thorsten Jolitz 
> wrote:
>
> Erik Gustafson
>  writes:
> 
> Hi Erik,
> 
> > https://github.com/erdg/picolisp-osc
> 
> > If interested, more info about OSC can be found here:
> >
> > opensoundcontrol.org/introduction-osc
> > opensoundcontrol.org/spec-1_0
> 
> I find the combination of sound & picolisp very interesting, are
> you
> aware of "SoundCollider" and the Clojure Libraries "Overtone" and
> "Leipzig"
> (both on Github)?
> 
> There are interesting videos on Youtube about making music with
> emacs/vim and clojure:
> 
> ,
> | 1.
> | Functional Composition - Chris Ford - YouTube
> |
> | www.youtube.com/watch?v=Mfsnlbd-4xQ8. Jan. 2013 - 39 Min.
> | ► - Hochgeladen von ClojureTV Music theory is one of the
> | 39:21 most naturally elegant and functional domains. It's a
> | perfect fit for ...
> |
> | 2.
> | Creating music with Clojure and Overtone - YouTube
> |
> | www.youtube.com/watch?v=RYZeQ6t_5SA23. Juli 2014 - 71 Min.
> | ► - Hochgeladen von Manchester Geek Nights Chris Ford shows
> | 70:50 how to make music with Clojure, starting with the basic
> | building block of ...
> `
> 
> And I noticed that you have another music related picolisp lib on
> github:
> 
> ,
> | 1. erdg/picolisp-aubio · GitHub
> |
> | https://github.com/erdg/picolisp-aubio
> `
> 
> I'm not so much interested in the technical (syntheziser) stuff
> but
> rather in the musical side of it, and I have a few questions:
> 
> 1. How much would it take not to rewrite Overtone in PicoLisp but
> rather
> to define a handfull of musical instruments that can easily be
> used in a
> music creating PicoLisp program? I'm thinking of a basic rhythm
> section
> with a few rhythm instruments (maybe just a snare drum for
> creating
> swing and a Cajon and maybe Handclaps for creating Flamenco/World
> Music
> beats) and, most important, a (acoustic contra) bass.
> 
> With some musical instruments available, one could take some
> inspiration
> from Overtone and Leipzig and maybe a python program like
> 
> ,
> | 1. MMA Home Page - Mellowood
> |
> | www.mellowood.ca/mma/
> | ‎
> | + Im Cache
> | + Ä hnliche Seiten
> | 13 Jun 2015 ... "MMA-Musical MIDI Accompaniment" is an
> | accompaniment generator. ... MMA's templating track system
> | puts you in control of your music.
> `
> 
> and create background tracks for practising in PicoLisp. I think
> that
> would be fun ;-)
> 
> 2. How to use (picolisp-)aubio to get a score of what I play?
> 
> Reading about Aubio, it seems that I could 

Re: Open Sound Control

2015-07-30 Thread Thorsten Jolitz
Erik Gustafson
 writes:

Hi Erik,

> I find the combination of sound & picolisp very interesting
>
> Me too! One of my long term goals is to write audio software in
> PicoLisp. Gotta have the most dynamic language for one of the most
> dynamic human processes ;)

after reading the replies here and reconsidering the mentioned tools I
think I will just use MMA for now, its written in Python and has a
simple syntax and abstracts away all the sound creation stuff. 

What I was looking for was probably something similar, but as a
(Pico)Lisp, i.e. a real programming language not only for
implementation, but to write down the music - instead of text syntax.

I don't want to have to build the guitar before I strum a chord, so to
say, and the other tools described require so much effort to bring them
up and master them.

Thanks for you answer.

-- 
cheers,
Thorsten

-- 
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe


Open Sound Control

2015-07-30 Thread Erik Gustafson
Hey Thorsten,

I find the combination of sound & picolisp very interesting


Me too! One of my long term goals is to write audio software in PicoLisp.
Gotta have the most dynamic language for one of the most dynamic human
processes ;)

are you aware of "SoundCollider" and the Clojure Libraries "Overtone" and
> "Leipzig"
> (both on Github)?


Yep, I've had a lot of fun with Overtone. It's a source of inspiration for
my PicoLisp audio vaporware. I'd like to use it as a jumping off point and
then let it evolve into whatever it wants to become. Much learning and many
tools to build for the time being, however.

There are interesting videos on Youtube about making music with
> emacs/vim and clojure


Awesome, thanks for sharing.

And I noticed that you have another music related picolisp lib on github.


Indeed. Unfortunately it's not really usable at this point. I think I've
got the basic data types, FFT's, and media sources working, but haven't
played with it in a couple weeks now. Another work in progress.

1. How much would it take not to rewrite Overtone in PicoLisp but rather
> to define a handfull of musical instruments that can easily be used in a
> music creating PicoLisp program? I'm thinking of a basic rhythm section
> with a few rhythm instruments (maybe just a snare drum for creating
> swing and a Cajon and maybe Handclaps for creating Flamenco/World Music
> beats) and, most important, a (acoustic contra) bass.


I think it would be non-trivial, but certainly not overwhelming. You'd need
a way to access your instrument samples (stay tuned, I'm hoping to get the
libaubio sampler working in PicoLisp) and then arrange those samples as
desired in musical time. Press play and jam on!

2. How to use (picolisp-)aubio to get a score of what I play?


I love this idea. I record myself playing piano often... it would be really
handy if we had a magical musical score generator! That would save me from
having to go back and transcribe the parts I really like. Certainly worth
further exploration!

Reading about Aubio, it seems that I could plugin my guitar into my
> computer, record some stuff, and the use Aubio to extract a midi score
> of what I played (and then use other programs to convert that midi score
> to conventional musical notation).


Right.


> but using e.g. aubiotrack...I get a binary file with some rhythmical
> clicks in it


'aubiotrack' is used for beat/tempo detection. Those clicks should be as
you would tap your foot along to the track (or as close as the
algorithm can guess).

>


> and using
> aubionotes I get something that doesn't look like a complete midi score
> of a tune:
>
> ,
> | $ aubionotes -vf -i /home/docs/music/sound/jimmy\ raney\
> | duets\ mp3/converted/mp3/Track01.ogg
> | using source: /home/docs/music/sound/jimmy raney duets
> | mp3/converted/mp3/Track01.ogg at 22050Hz
> | onset method: default, buffer_size: 512, hop_size: 256, threshold:
> | 0.00
> | pitch method: default, buffer_size: 2048, hop_size: 256, tolerance:
> | 0.00
> | 0.429569
> | 54.00   0.4295690.603719
> | 47.00   0.6037190.777869
> | 44.00   0.7778691.102948
> | 107.00  1.1029481.172608
> | 106.00  1.1726081.462857
> | 81.00   1.4628571.741497
> | 108.00  1.7414974.260862
> | 64.00   4.2608626.919547
> | 64.00   6.91954710.019410
> | 64.00   10.019410   12.875464
> | 64.00   12.875464   15.406440
> | 64.00   15.406440   18.111565
> | 64.00   18.111565   20.816689
> | 64.00   20.816689   23.498594
> | 64.00   23.498594   37.558277
> | read 37.97s (837248 samples in 3271 blocks of 256) from
> | /home/docs/music/sound/jimmy raney duets mp3/converted/mp3/Track01.ogg
> | at 22050Hz
> | 37.976234
> `


You're partially there now. 'aubionotes' has returned a bunch of midi notes
(64, 108, etc.) and the times at which they occur.  To get a complete
score, you would need to assemble these values into an actual midi file and
then import the midi file into a program that can give you back a score
(Lilypond comes to mind). I'm sure there are tools to help with midi
writing, but none come to mind.

Hope this helps!

PS
> Very exciting things going on in the PicoLisp universe right now!
>

Agreed! And thanks for the ideas, I've got some new musical stuff to
ponder.

Later,
Erik


Re: Open Sound Control

2015-07-30 Thread Robert Herman
I have come the long way round to PicoLisp, and I have been tinkering with
livecoding (audio/video, not just programming) for fun.

I started with fluxus: www.pawfal.org/fluxus/
It is a great environment where you code and 3D objects show behind your
code, and you can drive their parameters from an audio feed or file. It was
written in a scheme which is now Racket.

I am not a fan of clojure, so I only tried overtone, which is a Clojure
wrapper for the Supercollider sound server. They also copied Shadertoy with
their 'Shadertone' which allows for the graphics part of the livecoding of
music and graphics.

I personally like Extempore, but I couldn't get it built on my Windows
machine, the OS X install had some issues with Jack and timing, and my
Linux distro had a few issues too. All in all, it is very complete and
complex, but too much fuss for my skills. http://extempore.moso.com.au/

I have been sticking with learning PicoLisp, and I would like to somehow
get it to work with Grace (a single cross-platform executable, that you
program music pieces in a Scheme or simplified Scheme called Sal).
http://commonmusic.sourceforge.net/
Grace or CM lacks a video creation component or library. I was hoping to
hook into the CM libraries with PicoLisp, and then use Alex's z3d.l library
to do graphics in PicoLisp. I am not near enough of a programmer to do so,
only aware that it can be done (I think?).

Livecoding video and audio in a Lisp! Pure heaven...maybe CEPL in
PicoLisp??? https://www.youtube.com/watch?v=I0kWZP9L9Kc

Have fun!

Rob



On Thu, Jul 30, 2015 at 1:26 PM, Thorsten Jolitz  wrote:

> Erik Gustafson
>  writes:
>
> Hi Erik,
>
> > https://github.com/erdg/picolisp-osc
>
> > If interested, more info about OSC can be found here:
> >
> > opensoundcontrol.org/introduction-osc
> > opensoundcontrol.org/spec-1_0
>
> I find the combination of sound & picolisp very interesting, are you
> aware of "SoundCollider" and the Clojure Libraries "Overtone" and "Leipzig"
> (both on Github)?
>
> There are interesting videos on Youtube about making music with
> emacs/vim and clojure:
>
> ,
> |  1.
> | Functional Composition - Chris Ford - YouTube
> |
> |   www.youtube.com/watch?v=Mfsnlbd-4xQ8. Jan. 2013 - 39 Min.
> | ► - Hochgeladen von ClojureTV Music theory is one of the
> | 39:21 most naturally elegant and functional domains. It's a
> |   perfect fit for ...
> |
> |  2.
> | Creating music with Clojure and Overtone - YouTube
> |
> |   www.youtube.com/watch?v=RYZeQ6t_5SA23. Juli 2014 - 71 Min.
> | ► - Hochgeladen von Manchester Geek Nights Chris Ford shows
> | 70:50 how to make music with Clojure, starting with the basic
> |   building block of ...
> `
>
> And I noticed that you have another music related picolisp lib on
> github:
>
> ,
> |  1. erdg/picolisp-aubio · GitHub
> |
> | https://github.com/erdg/picolisp-aubio
> `
>
> I'm not so much interested in the technical (syntheziser) stuff but
> rather in the musical side of it, and I have a few questions:
>
> 1. How much would it take not to rewrite Overtone in PicoLisp but rather
> to define a handfull of musical instruments that can easily be used in a
> music creating PicoLisp program? I'm thinking of a basic rhythm section
> with a few rhythm instruments (maybe just a snare drum for creating
> swing and a Cajon and maybe Handclaps for creating Flamenco/World Music
> beats) and, most important, a (acoustic contra) bass.
>
> With some musical instruments available, one could take some inspiration
> from Overtone and Leipzig and maybe a python program like
>
> ,
> |  1. MMA Home Page - Mellowood
> |
> | www.mellowood.ca/mma/
> | ‎
> |   + Im Cache
> |   + Ä hnliche Seiten
> | 13 Jun 2015 ... "MMA-Musical MIDI Accompaniment" is an
> | accompaniment generator. ... MMA's templating track system
> | puts you in control of your music.
> `
>
> and create background tracks for practising in PicoLisp. I think that
> would be fun ;-)
>
> 2. How to use (picolisp-)aubio to get a score of what I play?
>
> Reading about Aubio, it seems that I could plugin my guitar into my
> computer, record some stuff, and the use Aubio to extract a midi score
> of what I played (and then use other programs to convert that midi score
> to conventional musical notation).
>
> ,
> |  1. aubio, a library for audio labelling
> |
> | aubio.org/
> | ‎
> |   + Im Cache
> |   + Ä hnliche Seiten
> | aubio, a collection of algorithms and tools to extract
> | musical meaning from audio signals, such as tempo, pitch, and
> | onset.
> `
>
> A fascinating perspective, but how to do that in practice? I tried to
> use aubio on mp3 and ogg files as input
>
> ,
> | $ aubionotes --help
> | usage: aubionotes [ options ]
> |-i  --inputinput file
> |-r  --samplerate   select samplerate
> |-B  --bufsize  set