csound / manual

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

no A4 example #459

Closed tjingboem closed 4 years ago

tjingboem commented 4 years ago

-

tjingboem commented 4 years ago

maybe add explanation/example about the fact that modern orchestras sometimes play at 442

AsterixMusic commented 4 years ago

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

; By Stefano Cucchi - 2020

</CsOptions>
<CsInstruments>

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

#define STANDARDPITCH #440# ; as set by ISO 1975:16 - STANDARD MUSICAL PITCH
#define BAROQUEPITCH #415# ; common use (but not standard) in Baroque era (1600 - 1750) 
#define HIGHER #443# ; some orchestras, mainly in Europe use higher pitch (442-443 Hz)

#define EXPRESSION #(440*1.3)+200# ; you can use an expression

A4 = $STANDARDPITCH
;A4 = $BAROQUEPITCH
;A4 = $HIGHER

;A4 = $EXPRESSION

instr 1 

ipch =  p4
icps =  cpspch(ipch)
asig    oscil 0.7, icps, 1
    outs  asig, asig

endin

</CsInstruments>
<CsScore>

f 1 0 4096 10 1 0.3 0.2. 0.1

; Theme from Bach BWV 578 -  Little fugue in G minor.
i 1 0 1 7.07
i 1 + 1 8.02
i 1 + 1.5 7.10
i 1 + .5 7.09
i 1 + .5 7.07
i 1 + .5 7.10
i 1 + .5 7.09
i 1 + .5 7.07
i 1 + .5 7.06
i 1 + .5 7.09
i 1 + 1 7.02
e

</CsScore>
</CsoundSynthesizer>
tgrey1 commented 4 years ago

Looks great! Also considering linking from the man page to https://www.iso.org/standard/3601.html as a reference... but I was a little surprised to learn that the ISO sells the standards, they're not published for free.

AsterixMusic commented 4 years ago

Yes, I did not link the page because you have to pay for reading the ISO file...


Stefano Cucchi I.T.B. Project Studio Viale Europa 15, 20088 Rosate (Mi) Tel: 3402601621 Mail: s.cucchi@itbprojectstudio.com mailto:s.cucchi@itbprojectstudio.com

On 20 Oct 2020, at 23:03, tgrey1 notifications@github.com wrote:

Looks great! Also considering linking from the man page to https://www.iso.org/standard/3601.html https://www.iso.org/standard/3601.html as a reference... but I was a little surprised to learn that the ISO sells the standards, they're not published for free.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/csound/manual/issues/459#issuecomment-713138305, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQLYSATNBM2SU5GXBRFKVJTSLX3LNANCNFSM4R4FW3CA.

tgrey1 commented 4 years ago

Thanks for adding the Bach theme, I think the more identifiable tonal center makes this example shine even more!

My thought was possibly linking there from the actual xml page, not the example... but agreed. We can skip linking it for now, maybe if we stumble across a better source in the future we can include it then.

csounder commented 4 years ago

A very nice example. I might recommend that you consider adding a slightly longer melody - like twinkle, twinkle or Mary Had A Little Lamb

Dr. Richard Boulanger

On Tue, Oct 20, 2020 at 2:34 AM Stefano Cucchi notifications@github.com wrote:

; Select audio/midi flags here according to platform -odac ;;;realtime audio out;-iadc ;;;uncomment -iadc if realtime audio input is needed too; For Non-realtime ouput leave only the line below:; -o A4.wav -W ;;; for file output any platform ; By Stefano Cucchi - 2020 sr = 44100ksmps = 32nchnls = 20dbfs = 1#define STANDARDPITCH #440# ; as set by ISO 1975:16 - STANDARD MUSICAL PITCH#define BAROQUEPITCH #415# ; common use (but not standard) in Baroque era (1600 - 1750) #define EXPRESSION #(440*1.3)+200# ; you can use an expression#define HIGHER #443# ; some orchestras, mainly in Europe use higher pitch (442-443 Hz)A4 = $STANDARDPITCH;A4 = $BAROQUEPITCH;A4 = $EXPRESSION;A4 = $HIGHERinstr 1 ipch = p4icps = cpspch(ipch)asig oscil 0.7, icps, 1 outs asig, asigendin f 1 0 4096 10 1 0.3 0.2. 0.1i 1 0 1 7.04i 1 + 1 7.09i 1 + 1 8.04i 1 + .5 8.07e

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://us-west-2.protection.sophos.com?d=github.com&u=aHR0cHM6Ly9naXRodWIuY29tL2Nzb3VuZC9tYW51YWwvaXNzdWVzLzQ1OSNpc3N1ZWNvbW1lbnQtNzEyNjI3MjU2&e=cmJvdWxhbmdlckBiZXJrbGVlLmVkdQ==&t=WWpSRTlhUzlRSVRkL1ZPNkY4TWYzZ1h1emtXcmtEUWZWaUc4cmZvM3N0Yz0=&h=c824d6c1d925480a8b216a7fa9e40329, or unsubscribe https://us-west-2.protection.sophos.com?d=github.com&u=aHR0cHM6Ly9naXRodWIuY29tL25vdGlmaWNhdGlvbnMvdW5zdWJzY3JpYmUtYXV0aC9BQUxXWUZWSTI0RUszWFQySlFSN0I3RFNMVVZPVEFOQ05GU000UjRGVzNDQQ==&e=cmJvdWxhbmdlckBiZXJrbGVlLmVkdQ==&t=eDAvcnJzaVVJUEZiZ3lQMktOMFg5ZWJXYitFZEM0aVNFTEdQaEJMcGh6Yz0=&h=c824d6c1d925480a8b216a7fa9e40329 .

tgrey1 commented 4 years ago

Thanks again, Dr.B!

Our team already had an idea where we might make a few of these simple melodies as an include file, so the examples could easily call any of them.

For example, something like this:

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

; By Stefano Cucchi - 2020

</CsOptions>
<CsInstruments>

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

#define STANDARDPITCH #440# ; as set by ISO 1975:16 - STANDARD MUSICAL PITCH
#define BAROQUEPITCH #415# ; common use (but not standard) in Baroque era (1600 - 1750)
#define HIGHER #443# ; some orchestras, mainly in Europe use higher pitch (442-443 Hz)

#define EXPRESSION #(440*1.3)+200# ; you can use an expression

A4 = $STANDARDPITCH
;A4 = $BAROQUEPITCH
;A4 = $HIGHER

;A4 = $EXPRESSION

instr 1

ipch =  p4
icps =  cpspch(ipch)
asig    oscil 0.7, icps, 1
    outs  asig, asig

endin

</CsInstruments>
<CsScore>

f 1 0 4096 10 1 0.3 0.2. 0.1

#include "Melodies.sco.inc"

; start Bach theme at 0 seconds with instr 1
$BACH(0'1)

; start Twinkle theme at 16 seconds with instr 2
$TWINKLE(16'2)
e

</CsScore>
</CsoundSynthesizer>

But we had never actual filed an issue to track this or make it official. Thanks for bringing this up and reminding me. I'll open one now!

csounder commented 4 years ago

Happy that you didn't take that advice as criticism.

I was just listening with the ears of one of my students who had not yet thought too much about alternate tuning or historical tunings or tuning references and I was thinking that slightly longer (but very familiar little melodies) might help them to get the point - and get inspired by a new awareness.

I love the idea of include files for loops, groves, ostinati, favorite melodies, etc.

Dr. Richard Boulanger

On Wed, Nov 11, 2020 at 9:03 PM tgrey1 notifications@github.com wrote:

Thanks again, Dr.B!

Our team already had an idea where we might make a few of these simple melodies as an include file, so the examples could easily call any of them.

For example, something like this:

; Select audio/midi flags here according to platform -odac ;;;realtime audio out; For Non-realtime ouput leave only the line below:; -o A4.wav -W ;;; for file output any platform ; By Stefano Cucchi - 2020 sr = 44100ksmps = 32nchnls = 20dbfs = 1#define STANDARDPITCH #440# ; as set by ISO 1975:16 - STANDARD MUSICAL PITCH#define BAROQUEPITCH #415# ; common use (but not standard) in Baroque era (1600 - 1750)#define HIGHER #443# ; some orchestras, mainly in Europe use higher pitch (442-443 Hz)#define EXPRESSION #(440*1.3)+200# ; you can use an expressionA4 = $STANDARDPITCH;A4 = $BAROQUEPITCH;A4 = $HIGHER;A4 = $EXPRESSIONinstr 1ipch = p4icps = cpspch(ipch)asig oscil 0.7, icps, 1 outs asig, asigendin f 1 0 4096 10 1 0.3 0.2. 0.1#include "Melodies.sco.inc"; start Bach theme at 0 seconds with instr 1$BACH(0'1); start Twinkle theme at 16 seconds with instr 2$TWINKLE(16'2)e

But we had never actual filed an issue to track this or make it official. Thanks for bringing this up and reminding me. I'll open one now!

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://us-west-2.protection.sophos.com?d=github.com&u=aHR0cHM6Ly9naXRodWIuY29tL2Nzb3VuZC9tYW51YWwvaXNzdWVzLzQ1OSNpc3N1ZWNvbW1lbnQtNzI1Nzc5NTU1&i=NWYxNzBkMDNiNTVmZGEwZmIyNjczYmRm&t=c3piRW1rS1k5VUJSckZYY0U0R0t5QTFKTGtjaC9UbzJFZlYrdTUwbFEvWT0=&h=1b084699a658482bb1194cb77278181b, or unsubscribe https://us-west-2.protection.sophos.com?d=github.com&u=aHR0cHM6Ly9naXRodWIuY29tL25vdGlmaWNhdGlvbnMvdW5zdWJzY3JpYmUtYXV0aC9BQUxXWUZUNlFGMkFCNDRXUTRJWVJWM1NQTTY1RkFOQ05GU000UjRGVzNDQQ==&i=NWYxNzBkMDNiNTVmZGEwZmIyNjczYmRm&t=a1Y2UjlVZkVPUFJHWHZqS1JKN3JCSzQ0Z1ovTWgwOU03c3hoUUZKcHFrND0=&h=1b084699a658482bb1194cb77278181b .