Skip to content

Commit

Permalink
just a commit to be sure
Browse files Browse the repository at this point in the history
  • Loading branch information
grirgz committed Jan 19, 2012
1 parent 3ce17e9 commit 049d195
Show file tree
Hide file tree
Showing 8 changed files with 278 additions and 164 deletions.
55 changes: 55 additions & 0 deletions crap10.sc
Expand Up @@ -236,3 +236,58 @@ SynthDescLib.global.browse


SynthDescLib.global[\pulsepass].makeWindow;




(
var size = 512;

r = Signal.fill(size, { |i| 2/size *i -1});
c = Signal.fftCosTable( size );
i = Signal.newClear( size );

f = fft( r, i, c );

p = f.phase[size div: 2..];
m = f.magnitude[..size div: 2];

h = Signal.sineFill(size, m, p);

[r,h].flop.flat.plot(numChannels:2)

)
Main.version

Quarks.gui



(

b = BSpline([ [ 0.42695473251029, 2.275 ], [ 1, 1 ], [ 2.5102880658436, 3.1 ], [ 4, 4 ] ]);

b.gui;

// to use X as time we need y values spaced in even X units

d = b.bilinearInterpolate(512);


d.plot2;

x = 5.0/512;

// collect into points for plotting

e = d.collect({ |dd,i| [x * i,dd] });


w = Window(bounds: Rect(40, 40, 800, 800)).front;

a = ScatterView(w, Rect(10, 10, 760, 760), e, ControlSpec(0.0,5.0), ControlSpec(0.0,5.0));

a.drawAxis_(true).drawMethod_(\fillOval).symbolColor_(Color.blue(0.5, 0.5)).symbolSize_(5);


)
6 changes: 3 additions & 3 deletions hmatrix.sc
Expand Up @@ -1046,10 +1046,10 @@
main.commands.add_enable([panel, \edit_barrecord], [\kb, ~keycode.mod.alt, ~keycode.kbaalphanum["b"]], { ~make_barrecord_edit_view.(main, [\knob, 0]); });

main.commands.add_enable([panel, \toggle_metronome], [\kb, ~keycode.mod.alt, ~keycode.kbaalphanum["m"]], {
if(main.model.metronome == false) {
main.model.metronome = true;
if(main.play_manager.use_metronome == false) {
main.play_manager.use_metronome = true;
} {
main.model.metronome = false;
main.play_manager.use_metronome = false;
}
});

Expand Down
6 changes: 2 additions & 4 deletions keycode.sc
Expand Up @@ -259,10 +259,8 @@
}.value;
~midi_note = {
var dico = Dictionary.new;
[ ~cakewalk.pad ].keysValuesDo { arg k, v;
v.do { arg raw, i;
dico[raw] = [k, i];
};
~cakewalk.pad.do { arg v, i;
dico[v] = [\pad, i];
};
dico;
}.value;
Expand Down
3 changes: 1 addition & 2 deletions main.sc
Expand Up @@ -298,9 +298,8 @@
patpool: Dictionary.new,
samplelist: List.new,

livenodepool: Dictionary.new,
livenodepool: Dictionary.new

metronome: false // enable metronome
),

commands: ~shortcut,
Expand Down

0 comments on commit 049d195

Please sign in to comment.