csound / manual

Csound Reference Manual (English)
Other
46 stars 29 forks source link

extractor needs example #644

Closed tjingboem closed 1 year ago

tjingboem commented 2 years ago

extractor example

I am not sure when cutting up a sample without really knowing what the result of the cut pieces will be, would be handy?

<CsoundSynthesizer>
<CsOptions>
; Select audio/midi flags here according to platform
-odac   -m0  ;;;realtime audio out, with limiter protection
; For Non-realtime ouput leave only the line below:
; -o envext.wav -W ;;; for file output any platform
</CsOptions>
<CsInstruments>

sr = 44100
ksmps = 32
nchnls = 2
0dbfs  = 1

; by Menno Knevel 2022

; cuts a piece of a sound file and outputs result to SFDIR
ires1 system_i 1,{{ extractor -S 0 -Z 40000 -v Mathews.wav -o ext1.wav  }} ; in samples 
ires2 system_i 1,{{ extractor -T 10 -E 13 -v   Mathews.wav -o ext2.wav  }} ; in seconds

instr 1

asig    diskin2 p4, 1
outs    asig, asig
endin

</CsInstruments>
<CsScore>

i1 0 2 "ext1.wav"  
i1 2 2 "ext2.wav" 
e
</CsScore>
</CsoundSynthesizer>
csounder commented 2 years ago

This utility was added before we had waveform editors and DAWs. It could probably be retired,

- Dr.B

Dr. Richard Boulanger

Professor

Electronic Production and Design

Berklee College of Music

Professional Writing & Technology Division

On Mon, Aug 22, 2022 at 4:06 PM Menno Knevel @.***> wrote:

extractor example

I am not sure when cutting up a sample without really knowing what the result of the cut pieces will be, would be handy?

; Select audio/midi flags here according to platform -odac -m0 ;;;realtime audio out, with limiter protection ; For Non-realtime ouput leave only the line below: ; -o envext.wav -W ;;; for file output any platform sr = 44100 ksmps = 32 nchnls = 2 0dbfs = 1 ; by Menno Knevel 2022 ; cuts a piece of a sound file and outputs result to SFDIR ires1 system_i 1,{{ extractor -S 0 -Z 40000 -v Mathews.wav -o ext1.wav }} ; in samples ires2 system_i 1,{{ extractor -T 10 -E 13 -v Mathews.wav -o ext2.wav }} ; in seconds instr 1 asig diskin2 p4, 1 outs asig, asig endin i1 0 2 "ext1.wav" i1 2 2 "ext2.wav" e

— Reply to this email directly, view it on GitHub https://us-west-2.protection.sophos.com?d=github.com&u=aHR0cHM6Ly9naXRodWIuY29tL2Nzb3VuZC9tYW51YWwvaXNzdWVzLzY0NA==&i=NWYxNzBkMDNiNTVmZGEwZmIyNjczYmRm&t=L2FsbXBOQ2V0WkNzT3N6bklHTEp0b1dhL2dSL2c0ZmFYSmcvSG85UzJuWT0=&h=352a68ac1f85437483df462de42117a1, or unsubscribe https://us-west-2.protection.sophos.com?d=github.com&u=aHR0cHM6Ly9naXRodWIuY29tL25vdGlmaWNhdGlvbnMvdW5zdWJzY3JpYmUtYXV0aC9BQUxXWUZRNUxOUFkzSFkzSUZXNENNTFYyUE1UN0FOQ05GU001N0k1WTRYUQ==&i=NWYxNzBkMDNiNTVmZGEwZmIyNjczYmRm&t=UGpzMGZJdjA4ZFJFbXdvem9FWmdHa3dvSFVkKzVYcDlJSk1OOEFhbWJybz0=&h=352a68ac1f85437483df462de42117a1 . You are receiving this because you are subscribed to this thread.Message ID: @.***>

tjingboem commented 1 year ago

example added

csounder commented 1 year ago

nice

- Dr.B

Dr. Richard Boulanger

Professor

Electronic Production and Design

Berklee College of Music

Professional Writing & Technology Division

On Sun, Jan 1, 2023 at 3:55 PM Menno Knevel @.***> wrote:

example added

— Reply to this email directly, view it on GitHub https://us-west-2.protection.sophos.com?d=github.com&u=aHR0cHM6Ly9naXRodWIuY29tL2Nzb3VuZC9tYW51YWwvaXNzdWVzLzY0NCNpc3N1ZWNvbW1lbnQtMTM2ODUzMjQzMA==&i=NWYxNzBkMDNiNTVmZGEwZmIyNjczYmRm&t=NkxQOUgwaVd4cWlSUjNvYWp3MENaaUNBYWhEdzZxTitHTDlhSUV0Ukk4MD0=&h=5ece31a847764defb565374fcde63cc3&s=AVNPUEhUT0NFTkNSWVBUSVZ-CzEl059Ym1RlqwKl3ZhNfC-dR2N5IDL9CUAdMA_6tA, or unsubscribe https://us-west-2.protection.sophos.com?d=github.com&u=aHR0cHM6Ly9naXRodWIuY29tL25vdGlmaWNhdGlvbnMvdW5zdWJzY3JpYmUtYXV0aC9BQUxXWUZVR1NOQVA3WkNLRTVXVDdORFdRSFZLSEFOQ05GU001N0k1WTRYUQ==&i=NWYxNzBkMDNiNTVmZGEwZmIyNjczYmRm&t=c3kwaUdsdFNwbGFWSkJNSnNNT3d2V2FIN2hQQnhkaE1KRkg1NDRrMWVoQT0=&h=5ece31a847764defb565374fcde63cc3&s=AVNPUEhUT0NFTkNSWVBUSVZ-CzEl059Ym1RlqwKl3ZhNfC-dR2N5IDL9CUAdMA_6tA . You are receiving this because you commented.Message ID: @.***>