Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #3359 > unrolled thread
| Started by | info@dvholten.de |
|---|---|
| First post | 2011-06-29 21:32 +0000 |
| Last post | 2011-06-30 20:59 +0000 |
| Articles | 2 — 2 participants |
Back to article view | Back to comp.soft-sys.math.mathematica
End of Sound info@dvholten.de - 2011-06-29 21:32 +0000
Re: End of Sound David Bailey <dave@removedbailey.co.uk> - 2011-06-30 20:59 +0000
| From | info@dvholten.de |
|---|---|
| Date | 2011-06-29 21:32 +0000 |
| Subject | End of Sound |
| Message-ID | <iug5l2$9fl$1@smc.vnet.net> |
Hi folks,
i am playing with Sound and it's gang.
My code is something like this:
Play[ Sound[ {"Polysynth",
SoundNote["Bb5" , 0.169 ],
SoundNote["Bb5" ,{ 0.285, 0.4540} ],
SoundNote["Bb5" ,{ 1.142, 1.31} ],
SoundNote["Bb5" ,{ 1.428, 1.596} ]
} ]
]
I notice the 'switch off' at the end of the sound - before its actually
over.
Even adding one or more SoundNote[ None ] with some duration doesnt extend
the silent phase at the end.
I help myself by adding a very low volume sound at the end.
But what is the proposed way to handle this?
How to make sure the generator is switched off some time *after* the
sounds ends?
Shouldn't Sound (or Play?) honour trailing None-SoundNotes ?
greetings
dvh
[toc] | [next] | [standalone]
| From | David Bailey <dave@removedbailey.co.uk> |
|---|---|
| Date | 2011-06-30 20:59 +0000 |
| Message-ID | <iuio3e$l06$1@smc.vnet.net> |
| In reply to | #3359 |
On 29/06/2011 22:32, info@dvholten.de wrote:
> Hi folks,
>
> i am playing with Sound and it's gang.
> My code is something like this:
>
> Play[ Sound[ {"Polysynth",
> SoundNote["Bb5" , 0.169 ],
> SoundNote["Bb5" ,{ 0.285, 0.4540} ],
> SoundNote["Bb5" ,{ 1.142, 1.31} ],
> SoundNote["Bb5" ,{ 1.428, 1.596} ]
> } ]
> ]
>
> I notice the 'switch off' at the end of the sound - before its actually
> over.
> Even adding one or more SoundNote[ None ] with some duration doesnt extend
> the silent phase at the end.
> I help myself by adding a very low volume sound at the end.
>
> But what is the proposed way to handle this?
> How to make sure the generator is switched off some time *after* the
> sounds ends?
> Shouldn't Sound (or Play?) honour trailing None-SoundNotes ?
>
> greetings
> dvh
>
SoundNote takes an option SoundVolume, so I guess you could pad the end
of your sound with a few notes of zero volume.
This however raises another missing feature of the sound system - I'd
like to be able to monitor how far I am into a sound, or at least to
know when it has completed. At the very least, I'd like to have an
option on EmitSound to return only when the sound has stopped playing.
David Bailey
http://www.dbaileyconsultancy.co.uk
[toc] | [prev] | [standalone]
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web