kroger / pyknon Goto Github PK
View Code? Open in Web Editor NEWSimple Python library to generate music in a hacker friendly way.
Home Page: http://kroger.github.com/pyknon/
License: MIT License
Simple Python library to generate music in a hacker friendly way.
Home Page: http://kroger.github.com/pyknon/
License: MIT License
The branch 'microtonal' has a few small changes that look like they're ready to merge to the master branch, and would be really useful! I plan to use this library in teaching, and it would be great to have the microtonal changes added to the main branch.
one of the methods in NoteSeq in the pyknon.music package has what I think is a typo:
NoteSeq.stretch_in v erval(...)
when I think it should be
NoteSeq.stretch_in t erval(...)
it's a "t" instead of a "v"
how can I install pyknon in colab?
I am trying to make a multi-track MIDI file using a different instrument per track using the following code:
midi = Midi(2, tempo=100, instrument=[5,117])
midi.seq_notes(obs_notes, track=0)
midi.seq_notes(day_beat, track=1)
midi.write("temps.mid")
Both tracks play instrument 117, instead of track 0 playing instrument 5. Is this expected? Is my code correct? Or is this an issue? Thanks so much!
Your demo.py is using old code, so is the demo in the README.
Looks like your domain lapsed and is pointing to malware, now.
Hi,
I am using Pyknon for a project, where I don't want to waste time with I/O, and hence do not want to write the Midi data into a file before using Pygame to play it. Is there any way for Pyknon to play the Midi object directly?
This is also a consideration because I plan to do this repetitively. Thanks for your reply.
Is there any plan to add chords?
Also harmonize() for Note and NoteSeq classes appears to be broken
I found that c.harmonize()
returns the chords from a given note.
My question is if there is a way to generate chords to harmonize a given sequence of notes (melody) automatically in Pyknon?
For instance, a sequence of Fibonacci as a melody, looking for a function to automatically harmonize it, so that the pieces sound more beautiful?
Thanks.
this project seems really cool.
i'm sad its not maintained anymore. does it live on in any form?
which other musical programming language / framework / library would you recommend ?
MIDI with octave specification (or maybe NoteSeq itself) or something else is broken.
For example, using the demo in the README creates a midi file that plays back with all notes in octave 4, whereas I would expect to hear the F# in octave 8.
Am I missing something, or is it truly broken?
i’m trying to affect each particular note’s velocity. i thought maybe you were using ‘volume’ where you meant ‘velocity’, but that appears to not be the case.
i have a loop that is generating new Note() instances, but i can’t seem to affect the velocity or volume. the result is basically the following:
Note(value=A, octave=3, volume=101)
Note(value=B, octave=5, volume=68)
Note(value=E, octave=4, volume=86)
Note(value=C, octave=5, volume=71)
Note(value=E, octave=3, volume=104)
Note(value=B, octave=5, volume=65)
Note(value=C, octave=3, volume=85)
Note(value=A, octave=5, volume=74)
however, when the midi file is written out (see attached) and opened in Logic Pro X all the notes are correct, however they all have a velocity of 120 and no indication of change in volume anywhere.
where is the velocity being set to a value of 120? and where is the volume value being used?
Thank you for creating this great package!
I did some experiments with the current notation for creating music. It works well, though it doesn't seem very intuitive as the note octave is dependent on previous modifiers.
Is the abc notation within the scope of this package? (maybe adding it as an alternative notation?)
Doing pip install pyknon
results in the following error:
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://pypi.org/simple/pyknon/
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.