• CapricornOne

    Hey guys

    I am using the seq_conversion in c_seqplay from rjdj lib to convert a
    midi file to a seq-textfile. I am aware that the "tempo $1" is
    relative to the tempo in the textfile. How do I get that tempo from
    qlist in c_seqplay? Ultimately I want to get the tempo from qlist and
    convert so it is relative, using [tempo $1{, to synchronize to a
    master metro. Any idea how this is done?

    posted in technical issues read more
  • CapricornOne

    Dealing with algorithmic music and markov chains here. I used the coll object to analyse short midi files and generate melodic variations. I'm dealing with drums and samples atm and was just wondering how I'd go about processing numbers (drum hits) simultaneously using the coll object and lists? It works fine for single-line/monophonic melodies but I'm stumped on how to get this working without resorting to multiple instances for each kit element.

    Any help would be appreciated

    *Patch is attached

    http://www.pdpatchrepo.info/hurleur/markov_chain.pd

    posted in technical issues read more
  • CapricornOne

    I've created a simple text-based escape the room game in Python, with the intention of embedding a Pure Data patch (via libPd) in order to playback a different soundfile (this will later be replaced with an algorithm for generative music) for each of my different rooms.

    The python code I'm currently working with was taken from one of the examples in the libPD github. It is as follows -

    import pyaudio
    import wave
    import sys
    from pylibpd import *

    p = pyaudio.PyAudio()

    ch = 2
    sr = 48000
    tpb = 16
    bs = 64

    stream = p.open(format = pyaudio.paInt16,
    channels = ch,
    rate = sr,
    input = True,
    output = True,
    frames_per_buffer = bs * tpb)

    m = PdManager(ch, ch, sr, 1)
    libpd_open_patch('wavfile.pd')

    while 1:
    data = stream.read(bs)
    outp = m.process(data)
    stream.write(outp)

    stream.close()
    p.terminate()
    libpd_release()

    The pure data patch simply plays back a pre-rendered wav file using readsf~, however the resulting output sounds almost as if it has been bitcrushed. I'm guessing the problem is to do with the block size but am not sure.

    If anyone has experience in embedding lidPD within Python I'd be greatly appreciated as I'm sure what I'm trying to achieve is embarrassingly simple.

    Thanks in advance, Cap

    posted in technical issues read more

Internal error.

Oops! Looks like something went wrong!