Hi list,
this seems to be easy but I can't figure it out:
How can I test an audio signal to lie within a certain range, or just if it is bigger or smaller than a reference value, and receive the result as an audio signal as well? Are there <~ an >~ objects or equivalents?
I am having problems search the mailing list archive at https://lists.puredata.info/search? as its search engine gives all sorts of answers which seem unrelated.
thank you for any ideas! Peter
On 2017-02-06 13:34, Peter P. wrote:
Hi list,
this seems to be easy but I can't figure it out:
How can I test an audio signal to lie within a certain range, or just if it is bigger or smaller than a reference value, and receive the result as an audio signal as well? Are there <~ an >~ objects or equivalents?
I am having problems search the mailing list archive at https://lists.puredata.info/search? as its search engine gives all sorts of answers which seem unrelated.
i gues that "~" is a special character; and (both square and angle) brackets are probably so common (for unrelated things, like email quoting and list header) that you only find garbage.
however, here's a hint: the default search interface uses "match any search term", whereas you probably want "match all".
farm IOhannes
On 2017-02-06 13:34, Peter P. wrote:
Hi list,
this seems to be easy but I can't figure it out:
How can I test an audio signal to lie within a certain range, or just if it is bigger or smaller than a reference value, and receive the result as an audio signal as well? Are there <~ an >~ objects or equivalents?
- [expr~ $v1>0.5]
- zexy's [>~]
- iirc cyclone provides them too
Thanks IOhannes and Roman! Funny there are no internal objects for this. best, P
Le 06/02/2017 à 14:00, Peter P. a écrit :
- IOhannes m zmoelnig zmoelnig@iem.at [2017-02-06 07:45]:
On 2017-02-06 13:34, Peter P. wrote:
Hi list,
this seems to be easy but I can't figure it out:
How can I test an audio signal to lie within a certain range, or just if it is bigger or smaller than a reference value, and receive the result as an audio signal as well? Are there <~ an >~ objects or equivalents?
- [expr~ $v1>0.5]
- zexy's [>~]
- iirc cyclone provides them too
Thanks IOhannes and Roman! Funny there are no internal objects for this.
for a vanilla only solution, you can use tabread~ with a 2 point table... cheers C
best, P
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
[...]
Thanks IOhannes and Roman! Funny there are no internal objects for this.
for a vanilla only solution, you can use tabread~ with a 2 point table...
Thank you Cyrille, gotta give this nice one a try! P
A solution is available in Enzien's heavylib https://github.com/enzienaudio/heavylib%C2%A0, it involves some [min] and [clip -1e-37 0] . No [expr~], so it is also fully heavy-compatible (as you would expect).Giulio
From: cyrille henry <ch@chnry.net>
To: pd-list@lists.iem.at Sent: Monday, 6 February 2017, 13:11 Subject: Re: [PD] test audio signals: Are there <~ and >~ objects?
Le 06/02/2017 à 14:00, Peter P. a écrit :
- IOhannes m zmoelnig zmoelnig@iem.at [2017-02-06 07:45]:
On 2017-02-06 13:34, Peter P. wrote:
Hi list,
this seems to be easy but I can't figure it out:
How can I test an audio signal to lie within a certain range, or just if it is bigger or smaller than a reference value, and receive the result as an audio signal as well? Are there <~ an >~ objects or equivalents?
- [expr~ $v1>0.5]
- zexy's [>~]
- iirc cyclone provides them too
Thanks IOhannes and Roman! Funny there are no internal objects for this.
for a vanilla only solution, you can use tabread~ with a 2 point table... cheers C
best, P
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
2017-02-06 11:00 GMT-02:00 Peter P. peterparker@fastmail.com:
Thanks IOhannes and Roman! Funny there are no internal objects for this. best, P
[expr~] is an internal
2017-02-06 11:11 GMT-02:00 cyrille henry ch@chnry.net:
for a vanilla only solution, you can use tabread~ with a 2 point table...
I don't know why [expr~] is usually not considered vanilla
the vanilla solution is with [expr~], which is an internal in vanilla
cheers
I don't know why [expr~] is usually not considered vanilla
Maybe because it lives in extra/ instead of src/ ?
What is extra/ there for, by the way? I remember it being mentioned in msp's paper that introduced [pd~], but not sure why it is still there. Giulio
From: Alexandre Torres Porres porres@gmail.com To: "pd-list@lists.iem.at" pd-list@lists.iem.at Sent: Monday, 6 February 2017, 17:13 Subject: Re: [PD] test audio signals: Are there <~ and >~ objects?
2017-02-06 11:00 GMT-02:00 Peter P. peterparker@fastmail.com: Thanks IOhannes and Roman! Funny there are no internal objects for this.
best, P
[expr~] is an internal
2017-02-06 11:11 GMT-02:00 cyrille henry ch@chnry.net: for a vanilla only solution, you can use tabread~ with a 2 point table...
I don't know why [expr~] is usually not considered vanilla
the vanilla solution is with [expr~], which is an internal in vanilla
cheers
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
yeah, it's confusing, but it's just "more" stuff into the vanilla package
2017-02-06 15:18 GMT-02:00 Giulio Moro giuliomoro@yahoo.it:
I don't know why [expr~] is usually not considered vanilla
Maybe because it lives in extra/ instead of src/ ?
What is extra/ there for, by the way? I remember it being mentioned in msp's paper that introduced [pd~], but not sure why it is still there. Giulio
From: Alexandre Torres Porres porres@gmail.com To: "pd-list@lists.iem.at" pd-list@lists.iem.at Sent: Monday, 6 February 2017, 17:13 Subject: Re: [PD] test audio signals: Are there <~ and >~ objects?
2017-02-06 11:00 GMT-02:00 Peter P. peterparker@fastmail.com: Thanks IOhannes and Roman! Funny there are no internal objects for this.
best, P
[expr~] is an internal
2017-02-06 11:11 GMT-02:00 cyrille henry ch@chnry.net: for a vanilla only solution, you can use tabread~ with a 2 point table...
I don't know why [expr~] is usually not considered vanilla
the vanilla solution is with [expr~], which is an internal in vanilla
cheers
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/ listinfo/pd-list
On 02/06/2017 06:18 PM, Giulio Moro via Pd-list wrote:
I don't know why [expr~] is usually not considered vanilla
because it used to be not part of Pd. technically, an external is a nobject that lives outside the main binary of Pd. since all the objects in extra/ are not part of the Pd binary, they are externals.
Maybe because it lives in extra/ instead of src/ ?
but expr is no longer in extra/, but has been moved to src/. and hence it is now an internal.
What is extra/ there for, by the way? I remember it being mentioned in msp's paper that introduced [pd~], but not sure why it is still there.
there's a number of reasons to put things into extra/. mostly these are:
used to be GPL; compiling all of them into a single binary would have turned Pd into GPL, something which might not be desirable)
contains code to be compiled as a Max/MSP external. i guess that keeping the code out of Pd-core made it simpler to maintain this dual-faced aspect)
fgmards IOhannes
but even extra objects are "vanilla" right?
2017-02-06 17:40 GMT-02:00 zmoelnig@iem.at:
On 02/06/2017 06:18 PM, Giulio Moro via Pd-list wrote:
I don't know why [expr~] is usually not considered vanilla
because it used to be not part of Pd. technically, an external is a nobject that lives outside the main binary of Pd. since all the objects in extra/ are not part of the Pd binary, they are externals.
Maybe because it lives in extra/ instead of src/ ?
but expr is no longer in extra/, but has been moved to src/. and hence it is now an internal.
What is extra/ there for, by the way? I remember it being mentioned in
msp's paper that introduced [pd~], but not sure why it is still there.
there's a number of reasons to put things into extra/. mostly these are:
- license reasons (Pd is released under a BSD-3-clause license; expr
used to be GPL; compiling all of them into a single binary would have turned Pd into GPL, something which might not be desirable)
- maintenance reasons (a number of BSD-3-clause objects in extra/
contains code to be compiled as a Max/MSP external. i guess that keeping the code out of Pd-core made it simpler to maintain this dual-faced aspect)
fgmards IOhannes
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/ listinfo/pd-list
2017-02-06 18:51 GMT-02:00 zmoelnig@iem.at:
On 02/06/2017 09:03 PM, Alexandre Torres Porres wrote:
but being "vanilla" has little to do with being "external" or not.
ok, but it's not the first time somebody asks something like this and that [expr~] solutions aren't considered "vanilla", and I've always said it was
expr use to have licence issue that prevent it to be include in libpd; and libpd is the main reason people where trying to go vanilla. That's why I was considering that expr was not vanilla. I stand corrected.
cheers c
Le 07/02/2017 à 00:40, Alexandre Torres Porres a écrit :
2017-02-06 18:51 GMT-02:00 <zmoelnig@iem.at mailto:zmoelnig@iem.at>:
On 02/06/2017 09:03 PM, Alexandre Torres Porres wrote: but being "vanilla" has little to do with being "external" or not.
ok, but it's not the first time somebody asks something like this and that [expr~] solutions aren't considered "vanilla", and I've always said it was
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
- iirc cyclone provides them too
yes, part of the 'nettles' lib (which comes with cyclone). At least that's true for the old cyclone which came with Pd extended.
Also note that [expr~] is slower than the zexy and nettles externals. But sigops are usually not the bottleneck of a patch :-). Personally I'm using zexy.
Gesendet: Montag, 06. Februar 2017 um 13:45 Uhr Von: "IOhannes m zmoelnig" zmoelnig@iem.at An: pd-list pd-list@iem.at Betreff: Re: [PD] test audio signals: Are there <~ and >~ objects?
On 2017-02-06 13:34, Peter P. wrote:
Hi list,
this seems to be easy but I can't figure it out:
How can I test an audio signal to lie within a certain range, or just if it is bigger or smaller than a reference value, and receive the result as an audio signal as well? Are there <~ an >~ objects or equivalents?
- [expr~ $v1>0.5]
- zexy's [>~]
- iirc cyclone provides them too
I am having problems search the mailing list archive at https://lists.puredata.info/search? as its search engine gives all sorts of answers which seem unrelated.
i gues that "~" is a special character; and (both square and angle) brackets are probably so common (for unrelated things, like email quoting and list header) that you only find garbage.
however, here's a hint: the default search interface uses "match any search term", whereas you probably want "match all".
farm IOhannes
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
2017-02-06 11:02 GMT-02:00 Christof Ressi christof.ressi@gmx.at:
- iirc cyclone provides them too
yes, part of the 'nettles' lib (which comes with cyclone). At least that's true for the old cyclone which came with Pd extended.
not actually true...
cyclone, in Pd Extended, up to version alpha56, used to offer such objects as part of the "cyclone" library - there was no such thing as 'nettles' library then, or any reference to 'nettles' for the end user... see excerpt from the original readme
"* cyclone sub-library, taking care of loading hammer and sickle, and which itself contains: a small set of operators (!-, !/, ==~, !=~, <~, <=~, >~,
=~, !-~, !/~, %~, +=~); an importing mechanism provided by the cyclone
class."
After Pd-Extended and under a new maintenance phase, cyclone 0.1alpha57 and 0.2beta got rid of the cyclone library and created a new library named 'nettles', so this is currently available as such only in cyclone 0.2 from deken.
we've been now working on an update of cyclone (cyclone 0.3), and we are reverting this library back to the original name "cyclone", cause we consider that this change was unnecessary and broke backwards compatibility, but it'll will include only these non alphanumeric operators (there are 12 of them, only 3 of which are also in zexy: <~, >~ and ==~)
cheers
These are probably more efficient than expr~
On Mon, Feb 6, 2017 at 8:02 AM, Christof Ressi christof.ressi@gmx.at wrote:
- iirc cyclone provides them too
yes, part of the 'nettles' lib (which comes with cyclone). At least that's true for the old cyclone which came with Pd extended.
Also note that [expr~] is slower than the zexy and nettles externals. But sigops are usually not the bottleneck of a patch :-). Personally I'm using zexy.
Gesendet: Montag, 06. Februar 2017 um 13:45 Uhr Von: "IOhannes m zmoelnig" zmoelnig@iem.at An: pd-list pd-list@iem.at Betreff: Re: [PD] test audio signals: Are there <~ and >~ objects?
On 2017-02-06 13:34, Peter P. wrote:
Hi list,
this seems to be easy but I can't figure it out:
How can I test an audio signal to lie within a certain range, or just
if
it is bigger or smaller than a reference value, and receive the result as an audio signal as well? Are there <~ an >~ objects or equivalents?
- [expr~ $v1>0.5]
- zexy's [>~]
- iirc cyclone provides them too
I am having problems search the mailing list archive at https://lists.puredata.info/search? as its search engine gives all sorts of answers which seem unrelated.
i gues that "~" is a special character; and (both square and angle) brackets are probably so common (for unrelated things, like email quoting and list header) that you only find garbage.
however, here's a hint: the default search interface uses "match any search term", whereas you probably want "match all".
farm IOhannes
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/
listinfo/pd-list
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/ listinfo/pd-list
On 02/06/2017 10:03 PM, Matt Barber wrote:
These are probably more efficient than expr~
speaking of performance: zexy's binops should definitely be fastest (as they are actively optimized).
but as christoph said: these objects are most likely not the performance bottle-necks of your
anyhow, here's another trick i learned from miller, to emulate "> 0.2" for signals:
[-+ 0.2] | [*~ 1e10] | [clip~ 0 1]
mgfadsr IOhannes
On 02/06/2017 10:03 PM, Matt Barber wrote:
These are probably more efficient than expr~
speaking of performance: zexy's binops should definitely be fastest (as they are actively optimized).
but as christoph said: these objects are most likely not the performance bottle-necks of your
anyhow, here's another trick i learned from miller, to emulate "> 0.2" for signals:
[-+ 0.2] | [*~ 1e10] | [clip~ 0 1]
This is a nice one! Thanks IO and Miller! Made a "< 0.2" version as well:
[sig~ 0.2] [inlet~] | / | ______/ | / [-~] | [*~ 1e10] | [clip 0 1]
On Mon, 2017-02-06 at 07:34 -0500, Peter P. wrote:
Hi list,
this seems to be easy but I can't figure it out:
How can I test an audio signal to lie within a certain range, or just if it is bigger or smaller than a reference value, and receive the result as an audio signal as well? Are there <~ an >~ objects or equivalents?
I am having problems search the mailing list archive at https://lists.puredata.info/search?%C2%A0 as its search engine gives all sorts of answers which seem unrelated.
The zexy library comes with [<~] and [>~] (and a couple of other signal comparators).
Roman
On 06/02/17 12:45, Roman Haefeli wrote:
On Mon, 2017-02-06 at 07:34 -0500, Peter P. wrote:
Are there <~ an >~ objects or equivalents?
The zexy library comes with [<~] and [>~] (and a couple of other signal comparators).
You can also use [expr~] (built-in vanilla) for these.