Commit 4953105f authored by Kenneth Flak's avatar Kenneth Flak

flutter

parent c82664ba
/home/kf/mySamples/birdSong
\ No newline at end of file
/home/kf/mySamples/dancingBodies/NuggetsPhrase.wav
\ No newline at end of file
......@@ -311552,3 +311552,302 @@ querying settings
('XBEE setting: destination low address', '\x00\x00\xff\xfa')
Waiting for Server-thread to finish
Done; goodbye
exiting hive loop
gui_ip
key is not None
gui_port
---------------------------------------------------------------------------
MetaPydonHive - a universal client to communicate with the minibee network.
version v0.44
--- to find out more about the startup options start with 'metapydonhive.py -h'
--- The client has been started with these options:
{'verbose': False, 'apimode': True, 'ip': '0.0.0.0', 'xbeeerror': False, 'serial': '/dev/ttyUSB0', 'port': 57600, 'createNewFiles': True, 'logdata': False, 'minibees': 20, 'program': '/minibee/*', 'logdir': '.', 'autostart': False, 'gui_ip': '127.0.0.1', 'config': 'mb9-19.xml', 'hport': 57120, 'gui_port': None, 'baudrate': 57600, 'host': '127.0.0.1', 'mboffset': 1, 'name': 'pydonhive', 'loglevel': 'info', 'quiet': False, 'ignore': False, 'logname': 'pydon.log', 'clean': False}
---------------------------------------------------------------------------
assigning minibee
1
assigning minibee
1
assigning minibee
1
assigning minibee
1
assigning minibee
1
assigning minibee
1
assigning minibee
1
assigning minibee
1
assigning minibee
1
assigning minibee
1
assigning minibee
1
('ignoring unknown minibees', False)
('check for xbee errors', False)
('gui interface', '127.0.0.1', None)
trying to open serial port
('Opening serial port', '/dev/ttyUSB0', True)
initialising communication through serial port
querying settings
setting coordinator settings
querying settings
--------------------------------
('create new files for unknown minibees', True)
Created OSC listener at (0.0.0.0,57600) and OSC sender to (127.0.0.1,57120) and opened serial port at /dev/ttyUSB0. Now waiting for messages.
--------------------------------
('XBEE setting: channel', '\x12')
('XBEE setting: panid', "\x10'")
('XBEE setting: coordinator enable', '\x01')
('XBEE setting: api mode', '\x02')
('XBEE setting: my address', '\x00\x00')
('XBEE setting: destination high address', '\x00\x00\x00\x00')
('XBEE setting: destination low address', '\x00\x00\xff\xfa')
('XBEE setting changed', 'CE')
('XBEE setting changed', 'AP')
('XBEE setting changed', 'MY')
('XBEE setting changed', 'DH')
('XBEE setting changed', 'DL')
('XBEE setting: channel', '\x12')
('XBEE setting: panid', "\x10'")
('XBEE setting: coordinator enable', '\x01')
('XBEE setting: api mode', '\x02')
('XBEE setting: my address', '\x00\x00')
('XBEE setting: destination high address', '\x00\x00\x00\x00')
('XBEE setting: destination low address', '\x00\x00\xff\xfa')
Sending config message for MiniBee 13, revision D, firmware 7
Configuration:
{'A5': 'TWIClock', 'A4': 'TWIData'}
Sending config message for MiniBee 13, revision D, firmware 7
Configuration:
{'A5': 'TWIClock', 'A4': 'TWIData'}
Sending config message for MiniBee 13, revision D, firmware 7
Configuration:
{'A5': 'TWIClock', 'A4': 'TWIData'}
Sending config message for MiniBee 13, revision D, firmware 7
Configuration:
{'A5': 'TWIClock', 'A4': 'TWIData'}
Sending config message for MiniBee 13, revision D, firmware 7
Configuration:
{'A5': 'TWIClock', 'A4': 'TWIData'}
('confirmconfig', [1, 0, 50, 6, 0, 0, 0])
minibee 13 is configured
--------------------------------
Sending config message for MiniBee 14, revision D, firmware 7
Configuration:
{'A5': 'TWIClock', 'A4': 'TWIData'}
Sending config message for MiniBee 14, revision D, firmware 7
Configuration:
{'A5': 'TWIClock', 'A4': 'TWIData'}
Sending config message for MiniBee 14, revision D, firmware 7
Configuration:
{'A5': 'TWIClock', 'A4': 'TWIData'}
Sending config message for MiniBee 14, revision D, firmware 7
Configuration:
{'A5': 'TWIClock', 'A4': 'TWIData'}
Sending config message for MiniBee 14, revision D, firmware 7
Configuration:
{'A5': 'TWIClock', 'A4': 'TWIData'}
('confirmconfig', [1, 0, 50, 6, 0, 0, 0])
minibee 14 is configured
--------------------------------
(
~mbFlutterFx.do(_.free);
~mbFlutter.do(_.free);
~mbFlutterFx = List.new(0);
4.do{
~mbFlutterFx.add(
FxChain.new(
fadeInTime: 10,
level: 6.dbamp,
fadeOutTime: 10,
out: ~masterBus,
);
);
};
~mbFlutterFx[0].addPar(
\comb, [\mix, 0.3, \delay, 0.2, \decay, 1, \amp, 1/3],
\comb, [\mix, 0.3, \delay, 0.5, \decay, 1, \amp, 1/3],
\comb, [\mix, 0.3, \delay, 0.7, \decay, 1, \amp, 1/3],
);
~mbFlutterFx[0].add(\eq, [
\locut, 120,
\hishelfdb, -6,
]);
//---------------------------------------------------------
~mbFlutterFx[1].add(\jpverb, [
\revtime, 2,
\mix, 0.1
]);
~mbFlutterFx[1].add(\eq, [
\locut, 120,
\hishelfdb, -6,
]);
//---------------------------------------------------------
~mbFlutterFx[2].add(\greyhole, [
\delayTime, 0.3,
\feedback, 0.6,
\mix, 0.1
]);
~mbFlutterFx[2].add(\eq, [
\locut, 500,
\hishelfdb, -6,
]);
////---------------------------------------------------------
~mbFlutter = ~mb.collect{|id, idx|
MBDeltaTrig.new(
speedlim: 0.5,
threshold: 0.05,
minibeeID: id,
minAmp: -12,
maxAmp: -0,
function: {|dt, minAmp, maxAmp|
var currentFx;
var buf = ~buf[\nuggets] ++ ~buf[\birdSong];
var numFrames = buf[1].numFrames;
var currentPos = numFrames.rand;
var dur = rrand(0.1, 0.2);
var step = dur * s.sampleRate;
var count = 20;
var len = dt.linlin(0.0, 1.0, step, step * count);
// var pos = 8.collect({rrand(0, numFrames)});
var pos = (currentPos, currentPos+step..currentPos+len).mod(numFrames);
var time = pos[pos.size-1] - pos[0] / s.sampleRate;
Pbind(
\instrument, \playbuf,
\buf, buf.choose,
\dur, dur,
\attack, Pkey(\dur) * 0.5,
\release, Pkey(\dur) * 1.5,
\startPos, Pseq(pos),
\legato, Pwhite(0.1, 0.4),
\rate, Pexprand(0.125, 4.0),
\db, dt.linlin(0.0, 1.0, minAmp, maxAmp),
\pan, Pseg(Pwhite(0.0, 1.0), Pwhite(0.0, 1.0), time),
\out, Pfunc({
currentFx = ~mbFlutterFx.choose;
currentFx.in
}),
\group, Pfunc({
currentFx.group
}),
).play;
}
);
};
~mbFlutterFx.do(_.play);
~mbFlutter.do(_.play);
// ~mbFlutter[0].play;
// ~mbFlutter[1].play;
// ~mbFlutter[2].play;
// ~mbFlutter[3].play;
)
(
~mbFlutterFx.do(_.free);
~mbFlutter.do(_.free);
)
s.plotTree;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment