forked from MarianneTeixido/hackcode2.0
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
unyxt
committed
Aug 23, 2020
1 parent
4d8b396
commit 21a6d81
Showing
5 changed files
with
133 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# Lectura de valores con CSV | ||
|
||
 | ||
|
||
|
||
Link del código de la clase, dar click [aquí](https://github.com/MarianneTeixido/hackcode2.0/blob/master/sesion04/s04.scd). | ||
|
||
En esta sesión, en el código revisaremos una técnica para leer y sonificar datos provenientes de CVS para ser leídos por un sinte de Frecuencia Modulada (FM). | ||
|
||
Posteriormente revisaremos los códigos que han estado trabajando, con el fin de socializar los procesos, compartir el código y resolver dudas. Y finalmente instalaremos los programas necesarios para el streaming tanto con Radio Tsonami como con PiranhaLab. | ||
|
||
## Herramientas para streaming | ||
|
||
### Radio Tsonami | ||
|
||
Para la transmisión en Radio Tsonami podemos optar por dos opciones. Mandar un track o tocar en vivo. En el caso de optar por la segunda opción será necesario transmitir vía BUTT. | ||
|
||
__BUTT__, (_Broadcast Using This Tool_) es un software libre con licencia GPLv2 para enviar tu señal de radio por internet. | ||
|
||
Permite conectar con un servidor de streaming. Su principal característica es la transmisión del audio que gestiona la tarjeta de sonido y enviarla al servidor de radio streaming. | ||
|
||
- [Guía de instalación y uso.](https://radioslibres.net/butt-herramienta-sencilla-para-hacer-streaming/) | ||
- [Descarga](http://danielnoethen.de/butt/) | ||
|
||
### PiranhaLab | ||
|
||
Al igual que en el caso de Radio Tsonami, acá podremos optar por ambas modalidades, grabación o streaming. En ambos casos, la mejor herramienta para resolverlo es OBS. Tanto para la transmisión al espacio virtual de PiranhaLab como para la grabación del set. | ||
|
||
__OBS__ (_Open Broadcaster Software_) es un software libre y open source multiplataforma para realizar streaming de audio y video y para grabar. | ||
|
||
- [Descarga](https://obsproject.com/download) | ||
|
||
## Ruteo de audio | ||
|
||
Soundflower | ||
|
||
Loopback | ||
|
||
[Blackhole](https://github.com/ExistentialAudio/BlackHole) | ||
|
||
Jack | ||
|
||
|
||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
|
||
//Hackcode. Composición Algorítmica en tiempo real. | ||
//Agosto, 2020 | ||
//Festival Sur Aural | ||
//Licencia GNU General Public License v3.0 | ||
|
||
|
||
_______________________________________________________________________________________ | ||
_______________________________________________________________________________________ | ||
|
||
|
||
CUARTA SESIÓN | ||
|
||
LECTURA DE VALORES DE CSV | ||
|
||
_______________________________________________________________________________________ | ||
_______________________________________________________________________________________ | ||
|
||
|
||
|
||
p = ProxySpace.push(s.boot); | ||
p.makeTempoClock((120/120)); | ||
p.quant = 4; | ||
|
||
z = CSVFileReader.read("/home/unyxt/OF/of_v0.10.1_osx_release/apps/myApps/unknownAuthor/bin/data/csv/colorF/1.csv", true, true).postcs; | ||
|
||
a = Array.fill(z.size, { arg i; z[i][0].split($ ) }); | ||
b = Array.fill(z.size, { arg i; a[i][0] }); | ||
|
||
~a1R = {Demand.kr(Impulse.kr(~tempo*8), 0, Dseq(b.asInteger,inf))}; | ||
~pmosc = {Pan2.ar(PMOsc.ar(~a1R.midicps * 0.25, ~a1R.midicps * 0.15, 1, 0, 0.5))*0.5}; | ||
|
||
s.scope | ||
~out.free | ||
~out.play | ||
~out = ~pmosc | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
|
||
//Hackcode. Composición Algorítmica en tiempo real. | ||
//Agosto, 2020 | ||
//Festival Sur Aural | ||
//Licencia GNU General Public License v3.0 | ||
|
||
|
||
_______________________________________________________________________________________ | ||
_______________________________________________________________________________________ | ||
|
||
|
||
CUARTA SESIÓN | ||
|
||
LECTURA DE VALORES DE CSV | ||
|
||
_______________________________________________________________________________________ | ||
_______________________________________________________________________________________ | ||
|
||
|
||
|
||
p = ProxySpace.push(s.boot); | ||
p.makeTempoClock((120/120)); | ||
p.quant = 4; | ||
|
||
z = CSVFileReader.read("/home/unyxt/OF/of_v0.10.1_osx_release/apps/myApps/unknownAuthor/bin/data/csv/colorF/1.csv", true, true).postcs; | ||
|
||
a = Array.fill(z.size, { arg i; z[i][0].split($ ) }); | ||
b = Array.fill(z.size, { arg i; a[i][0] }); | ||
|
||
~a1R = {Demand.kr(Impulse.kr(~tempo*8), 0, Dseq(b.asInteger,inf))}; | ||
~pmosc = {Pan2.ar(PMOsc.ar(~a1R.midicps * 0.25, ~a1R.midicps * 0.15, 1, 0, 0.5))*0.5}; | ||
|
||
s.scope | ||
~out.free | ||
~out.play | ||
~out = ~pmosc | ||
|