Can you plot Csound tables?

86 views
Skip to first unread message

phi...@free.fr

unread,
Jun 3, 2014, 1:27:13 AM6/3/14
to baud...@googlegroups.com


Hello,

Csound does not have a real-time signal analysis tool.

can you use Baudline to plot Csound/Blue (Csound composition environment) tables in real-time?

Here's an example of a Csound file I would like to plot:

;FUNCTIONS
;SINEWAVE
f 1 0 8192 10 1
;BASSOON-LIKE WAVEFORM
f 2 0 8192 10 .24 .64 .88 .76 .06 .5 .24 .08

This instrument

kenv     linen     p4, 0.1, p3, 0.2     ; envelope
asig     oscili     kenv, p5, p6     ; oscillator
      out     asig     ; output


and this score

;---------------------------------
; p1  p2   p3   p4    p5      p6
;               AMP   FREQ    FUNC
;---------------------------------
;INDIVIDUAL COMPONENTS
i 1101    0    1.5  1  123.47  1
i 1101    2    .    .  246.94  .
i 1101    4    .    .  370.41  .
i 1101    6    .    .  493.88  .
i 1101    8    .    .   617.35  .
i 1101    10   .    .  740.82  .
i 1101    12   .    .  864.29  .
i 1101    14   .    .   987.76  .

;SUPERPOSITION OF COMPONENTS
i 1101    2    12   .  123.47  1
i 1101    3.5  10.5 .  246.94  .
i 1101    5    9    .  370.41  .
i 1101    6.5  7.5  .  493.88  .
i 1101    8    6    .   617.35  .
i 1101    9.5  4.5  .  740.82  .
i 1101    11   3    .  864.29  .
i 1101    12.5 1.5  .   987.76  .
s
;BASSOON-LIKE INSTRUMENT
i 1101    2    3    . 123.47   2
i 1101    5    .6   .     184.997  .
i 1101    5.6  .2   .     92.498   .
i 1101    5.8  .2   .     103.826  .
i 1101    6    .2   .     116.54   .
i 1101    6.2  .4   .     123.47   .
i 1101    6.6  .2   .     146.832  .
i 1101    6.8  .4   .     123.47   .
i 1101    7.2  .2   .     146.832  .
i 1101    7.4  .2   .     138.591  .
i 1101    7.6  .2   .     123.47   .
i 1101    7.8  .2   .     116.54   .
i 1101    8    .6   .     123.47   .



Many thanks.

Philippe

baudline

unread,
Jun 3, 2014, 2:13:20 PM6/3/14
to baud...@googlegroups.com
I am not familiar with Csound.  If Csound can generate waveform samples in a custom file format then you may be able to read it with baudline's Raw Parameters window:


If there is a way to have Csound pipe raw samples to a FIFO or stdout then you could do something like:

csound -stdout | baudline -stdin -record

You can also have baudline display the real-time output of Csound by using a loopback, either with JACK or physically with the audio hardware.
Reply all
Reply to author
Forward
0 new messages