Skip to content

Commit

Permalink
Limpia codigo metodos .inform
Browse files Browse the repository at this point in the history
  • Loading branch information
josecaos committed Jan 13, 2018
1 parent a02e37c commit 9ff5036
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 31 deletions.
25 changes: 4 additions & 21 deletions CaosSampler.sc
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ CaosSampler {

}
//
inform {|print = "CaosSampler written by @joseCao5 ", tempoTexto = 0.025, breakLine = true|
inform {|print = "CaosSampler written by @joseCao5 ", tempoText = 0.025, breakLine = true|

var txt = print.asArray;
var texto = txt.size;
Expand All @@ -453,7 +453,7 @@ CaosSampler {
texto.do({|i|
letrero.put(i, txt[i]);
letrero[i].asString.post;
tempoTexto.wait;
tempoText.wait;
0.yield;//regresa un valor vacio, para evitar que se imprima en el post
});

Expand All @@ -465,26 +465,9 @@ CaosSampler {
}
}

*inform {|print = "CaosSampler written by @joseCao5 ", tempoTexto = 0.025, breakLine = true|
*inform {|print = "CaosSampler written by @joseCao5 ", tempoText = 0.025, breakLine = true|

var txt = print.asArray;
var texto = txt.size;
var letrero = Array.newClear(texto);

fork {
texto.do({|i|
letrero.put(i, txt[i]);
letrero[i].asString.post;
tempoTexto.wait;
0.yield;
});

if(breakLine == true, {

"\n".post;

});
}
this.inform(print,tempoText,breakLine);
}

}
21 changes: 11 additions & 10 deletions test/test-livepad.scd
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ a = CaosSampler.new;
b = CaosSampler.new;
c = CaosSampler.new;


a.load("NRfw15","master.final/josecaos-11-xibalba-p4nda-master-48khz-24bits.wav",2);
b.load("impt","IMPT-josecaos-master/josecaos-1500(edit)-master-48khz-24bits-josecaos.xyz.wav",2);
c.load("impt","master.final/josecaos-02-xibalba-wdyjdi3-master-48khz-24bits.wav",2);
CaosSampler.scope
a.load("p4nda","master.final/josecaos-11-xibalba-p4nda-master-48khz-24bits.wav",2);
b.load("1500","IMPT-josecaos-master/josecaos-1500(edit)-master-48khz-24bits-josecaos.xyz.wav",2);
c.load("di3","master.final/josecaos-02-xibalba-wdyjdi3-master-48khz-24bits.wav",2);

a.play;
a.out(1,0);
Expand All @@ -35,18 +35,19 @@ c.toggleReverse(~t);
~c.ids;
~c.all;


c.amp('all',0.9);
// seqs
(
Tdef(\test,{
var t = Pwrand([1,0.5,0.25]+0.5,[0.2,0.3,0.5],inf).asStream;
var n = Pwrand([0.25,0.5,1,1.25,1.5,1.75,2]*2,[0.2,0.2,0.3,0.1,0.2,0.1],inf).asStream;
var t = Pwrand([1,0.5,0.25],[0.2,0.3,0.5],inf).asStream;
// var n = Pwrand([0.25,0.5,1,1.25,1.5,1.75,2]*2,[0.2,0.2,0.3,0.1,0.2,0.1],inf).asStream;
var n = Pxrand([0.25,0.5,1.25,1.5,1.75,2],inf).asStream;
loop{
c.toggleReverse;
c.speed(~t = n.next);
a.toggleReverse(~t = n.next*2);
a.speed(~t = n.next);
t.next.wait
}
});
}).quant_(1);
)
Tdef('test').play;
Tdef('test').stop;
Expand Down

0 comments on commit 9ff5036

Please sign in to comment.