Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #26267 > unrolled thread

[ANN] pyknon: Simple Python library to generate music in a hacker friendly way.

Started byPedro Kroger <kroger@pedrokroger.net>
First post2012-07-30 15:01 -0300
Last post2012-08-01 03:19 +0000
Articles 2 — 2 participants

Back to article view | Back to comp.lang.python


Contents

  [ANN] pyknon: Simple Python library to generate music in a hacker friendly way. Pedro Kroger <kroger@pedrokroger.net> - 2012-07-30 15:01 -0300
    Re: [ANN] pyknon: Simple Python library to generate music in a hacker friendly way. Peter Billam <peter@www.pjb.com.au> - 2012-08-01 03:19 +0000

#26267 — [ANN] pyknon: Simple Python library to generate music in a hacker friendly way.

FromPedro Kroger <kroger@pedrokroger.net>
Date2012-07-30 15:01 -0300
Subject[ANN] pyknon: Simple Python library to generate music in a hacker friendly way.
Message-ID<mailman.2740.1343671881.4697.python-list@python.org>
Pyknon is a simple music library for Python hackers. With Pyknon you
can generate Midi files quickly and reason about musical proprieties.
It works with Python 2.7 and 3.2.

Pyknon is very simple to use, here's a basic example to create 4 notes
and save into a MIDI file::

    from pyknon.genmidi import Midi
    from pyknon.music import NoteSeq

    notes1 = NoteSeq("D4 F#8 A Bb4")
    midi = Midi(1, tempo=90)
    midi.seq_notes(notes1, track=0)
    midi.write("demo.mid")


It's available on PyPI and its homepage is
http://kroger.github.com/pyknon/

Best regards,

Pedro
-----
http://pedrokroger.net
http://musicforgeeksandnerds.com

[toc] | [next] | [standalone]


#26334

FromPeter Billam <peter@www.pjb.com.au>
Date2012-08-01 03:19 +0000
Message-ID<slrnk1h81q.2pg.peter@box8.pjb.com.au>
In reply to#26267
On 2012-07-30, Pedro Kroger <kroger@pedrokroger.net> wrote:
> Pyknon is a simple music library for Python hackers. With Pyknon
> you  can generate Midi files quickly and reason about musical
> proprieties.  It works with Python 2.7 and 3.2.
> ... a basic example to create 4 notes and save into a MIDI file:
>     from pyknon.genmidi import Midi
>     from pyknon.music import NoteSeq
>     notes1 = NoteSeq("D4 F#8 A Bb4")
>     midi = Midi(1, tempo=90)
>     midi.seq_notes(notes1, track=0)
>     midi.write("demo.mid")
> It's available on PyPI and its homepage is
> http://kroger.github.com/pyknon/
> Pedro
> http://pedrokroger.net  http://musicforgeeksandnerds.com

I'll check it out.  It probably fits into a whole software
ecosystem that you're putting together ...

It's a crowded area, e.g. my midi stuff is at:
  http://www.pjb.com.au/midi/index.html
and I'd probably do the above example by:
  ~> muscript -midi <<EOT >demo.mid
  | 3/4 2.0
  =1 treble 4 D 8 [F# A] 4 Bb
  EOT
see:
  http://www.pjb.com.au/muscript/index.html
but also relevant would be my MIDI.py, see:
  http://www.pjb.com.au/midi/MIDI.html
which is also available in call-compatible Lua version:
  http://www.pjb.com.au/comp/lua/MIDI.html
and is closely related to the Perl CPAN module.
  
You could consider posting Pyknon to comp.music.midi ;
it's very low traffic, but some real gurus lurk there.

All the best with your music,
Peter

-- 
Peter Billam    www.pjb.com.au    www.pjb.com.au/comp/contact.html

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web