Dear list,
I am transcribing some code from C to Pd expressions, and I am wondering
how I might best get the tri function working since it's not native to expr.
I have been using this expression as my triangle function:
(min($v1, 1- $v1) - 0.25) * 4
So for this example:
wave_x = .5-triangle((phasor-9/16)/(2/16))*.5;
I have tried the following, which doesn't function correctly compared
with the original C:
[phasor~ 200]
|
[expr~ ($v1-9./16.)/(2./16.)]
|
[expr~ (0.5 - (min($v1, 1.- $v1) - 0.25) * 4.) * 0.5]
|
[s~ wave_x]
I am quite sure I have made some errors in the syntax somewhere, and I
did trial-and-error many other combinations before arriving at this one.
Would someone more math-literate than me care to help work this out?
SIDENOTE: when is it necessary to force expr~ to consider a number as a
float by using a decimal?
(9/16) doesn't work but (9./16.) does.
((min($v1, 1- $v1) - 0.25) * 4) works regardless of whether the 1 and
the 4 have a decimal point following them or not.
Thanks much!
Derek
--
derek holzer
noise.art.technology
http://macumbista.net
Dear List,
I am having issues getting csound6~ to work on raspbian. I have managed to
get it to work on ubuntu mate, but there seems to be an issue with the
installation on raspbian. The error is flagged in the pd console:
"undefined symbol: canvas_dspstate"
not sure why the installation of this particular object has issues. I do
get the same issue with rtcmix~ (not maintained by this list), but both.
PD version = 0.46.2-1 Vanilla
pd-csound = 1:6.03.2~dfsg-1
I tried the ubuntu version on raspbian, but it threw the same errors. Not
sure if this is a PD or external issue.
Thanks for the help,
--
Dirk Johan Stromberg, BM, MM
Lecturer, Audio Production @ LASALLE College of the Arts
+65 9386-9243
More @
dirkstromberg.org
I oftenly use abstractions with arguments (e.g. preset values) typed into the object box. Unfortunately in that mode the abstractions own GUI is invisible, due to arguments only working, when “Hide object name and argumets” is active.
Couldn’t there be a way, that let’s one alternatively type arguments into fields contained within the objects properties window?
How could one preserve the abstraction GUI and use arguments? Or how do you work alternatively?
Thanx for any insights.
jayrope
- - -
www.jayrope.comwww.aircushionfinish.comwww.ello.co/jayrope
Is this an appropriate place to say “ I am currently in Barcelona for ten days and would like to meet other PD users for exchange”?
If so and you are interested, send me a message offlist. Thank you.
jayrope
- - -
www.jayrope.comwww.aircushionfinish.comwww.ello.co/jayrope
Are you sure? I added an explicit browser refresh mechanism when changing paths and hitting ok in the Path dialog. You can also trigger by pressing MOD+Shift+R with the browser in focus.
> On Aug 11, 2017, at 5:46 AM, pd-list-request(a)lists.iem.at wrote:
>
> Date: Fri, 11 Aug 2017 01:31:45 +0000
> From: Lucas Cordiviola <lucarda27(a)hotmail.com <mailto:lucarda27@hotmail.com>>
> To: "pd-list(a)lists.iem.at <mailto:pd-list@lists.iem.at>" <pd-list(a)lists.iem.at <mailto:pd-list@lists.iem.at>>
> Subject: Re: [PD] [PD-announce] Pd version 0.48-0test7
> Message-ID:
> <BLUPR01MB552AD870AAE0F8884AA9009A6890(a)BLUPR01MB552.prod.exchangelabs.com <mailto:BLUPR01MB552AD870AAE0F8884AA9009A6890@BLUPR01MB552.prod.exchangelabs.com>>
>
> Content-Type: text/plain; charset="utf-8"
>
> w32 seems good.
>
> [pd~] is Ok.
>
> All the new documents/pd thing seems fine. New paths adds correctly,
> only a very *minor issue* is that they don't reflect on the browser
> until next restart, but not restarting they appear on the "externals"
> sub-dir.
--------
Dan Wilcox
@danomatika <http://twitter.com/danomatika>
danomatika.com <http://danomatika.com/>
robotcowboy.com <http://robotcowboy.com/>
To be fair, changes were made after feedback was asked for but not given. A lot of time was put into balancing the issues but we sometimes have to guess what you might actually want.
> On Aug 11, 2017, at 2:18 AM, pd-list-request(a)lists.iem.at wrote:
>
> it appears that when I try to make changes to the GUI code it upsets people
--------
Dan Wilcox
@danomatika <http://twitter.com/danomatika>
danomatika.com <http://danomatika.com/>
robotcowboy.com <http://robotcowboy.com/>
> On Aug 11, 2017, at 2:30 PM, pd-list-request(a)lists.iem.at wrote:
>
> what is the "Forget all...." for preferences supposed to do? Reset Pd to
> first install state?
You're only half right.
There are *two* preferences:
* core preferences: paths, libs, audio devs, startup flags
* GUI-only preferences
Forget all... clears the core preferences only.
> If so I would assume when I "forget all" I would get
> the "Would you like to create a folder in ~/Documents/Pd?" dialog but
> instead if I "Forget all..." and $ rm ~/Documents/Pd I get:
>
> Pd documents directory cannot be found:
> /Users/megrimm/Documents/Pd
> Choose a new location?
Your assumption is wrong. You did not clear the GUI preferences and the pd_docsdir plugin checks if the previous path exists. In your case it does not so it falls back by letting you know it doesn't exist and let's you choose/make a new one.
> Should it not just reset to initial "Would you like to create a folder in
> ~/Documents/Pd?" ?
No, because, again, the docspath is still set in the GUI preferences. If you want to do a full purge, you need to clear the GUI preferences as well. On macOS, use:
defaults delete org.puredata.pd.pd-gui
Sorry if this sounds like "You're doing it wrong" but this release now has this split preferences system and I used the GUI prefs for the docspath as it's really a GUI-only setting.
--------
Dan Wilcox
@danomatika <http://twitter.com/danomatika>
danomatika.com <http://danomatika.com/>
robotcowboy.com <http://robotcowboy.com/>
>
> On Aug 11, 2017, at 10:31 AM, pd-list-request(a)lists.iem.at wrote:
>
> TLDR:
>
> This would keep box sizes of Pd <= 0.47:
> "7 12" on Linux and Mac
> "7 13" on Windows
This is more likely related to platform margins and with the newer version of Tk, the metrics might be slightly different. Also, the zoom font sizing change may have lead to this as well.
The Pd extended styling adjusted the margins in slightly different ways to account for this and I've started a PR start experiment with porting over these tweaks: https://github.com/pure-data/pure-data/pull/162 <https://github.com/pure-data/pure-data/pull/162>
> If this can't be adjusted, it would be good to know if the _new_ box
> sizes will be the canonical sizes.
Was there a canonical size before? We don't even have the same font on all platforms yet. I wouldn't plan on pixel perfect sizing yet...
It's way more than changing just the numbers in pd-gui.tcl and making per-platform metric numbers is probably a hack at best and headache at worst. In either case, IMO it's a lot of work and testing and thus may not happen *right now*.
--------
Dan Wilcox
@danomatika <http://twitter.com/danomatika>
danomatika.com <http://danomatika.com/>
robotcowboy.com <http://robotcowboy.com/>
Nope. I have little time for further Pd work right now.
> On Aug 11, 2017, at 5:46 AM, pd-list-request(a)lists.iem.at wrote:
>
> Date: Thu, 10 Aug 2017 23:44:50 -0300
> From: Alexandre Torres Porres <porres(a)gmail.com <mailto:porres@gmail.com>>
> To: Miller Puckette <msp(a)ucsd.edu <mailto:msp@ucsd.edu>>
> Cc: pd list <pd-list(a)iem.at <mailto:pd-list@iem.at>>
> Subject: Re: [PD] [PD-announce] Pd version 0.48-0test7
> Message-ID:
> <CAEAsFmhPnRzZ=2rYLCywmeZbyevZPW+ujgOSQbMxhbDTC_-EYg(a)mail.gmail.com <mailto:CAEAsFmhPnRzZ=2rYLCywmeZbyevZPW+ujgOSQbMxhbDTC_-EYg@mail.gmail.com>>
> Content-Type: text/plain; charset="utf-8"
>
> 2017-08-10 21:18 GMT-03:00 Miller Puckette <msp(a)ucsd.edu <mailto:msp@ucsd.edu>>:
>
>> unless someone else can figure this out I'll just release it in its
>> current almost-working state.
>
> Seems Dan was on it, huh?
--------
Dan Wilcox
@danomatika <http://twitter.com/danomatika>
danomatika.com <http://danomatika.com/>
robotcowboy.com <http://robotcowboy.com/>