Yahoo Groups archive

SynthModules

Index last updated: 2026-04-28 23:14 UTC

Thread

Re: I had to do it!

Re: I had to do it!

2004-05-13 by Michael A. Firman

Actually, I think the winner of the cool light show contest has to be the Wiard JAG.
Various neat colors (the Bagwa (sp?)) and, with the PSIM-1 running the quadrature
osc program you can make it spin around and around (if you have two JAGS you
can daisy chain them, crossing the xy output of the first to the second so that
they spin in opposite directions).


--- In SynthModules@yahoogroups.com, "Andrew Scheidler" <xpandrew@p...> wrote:
Show quoted textHide quoted text
> This is good news.  I thought I was the only one who was making "PSIM
> LED" programs and thought people might make fun of me :)
> 
> One favorite is to take the basic "sweep" program and expand it so that
> all four DACs are swept, but each is 1024 behind the next so they
> "chase" each other.  The blue leds fade/chase across from one side to
> the other.  <spicoli> Awesome... </spicoli>
> 
> From what I've seen, the Noise Ring is the "cool led patterns" winner.
> 
> Bryce, is there going to be a PSIM Lava Lamp add-on?
> 
> Andrew
> 
> >>> davebr@e... 05/12/04 11:28 PM >>>
> Ok, having grown up on a PDP-8, I just had to have a program to
> display nifty patterns in the leds.  If you too have a desire to make
> your PSIM look like it's doing something useful, you can find my
> LIGHTS.BAS file in the miscellaneous folder.  Next, with the useful
> print statement demonstrated in sertest.bas, I'll begin work on
> porting wumpus ...
> 
> Dave
> 
> 
> 
> 
> Be sure to check out the primary Web site at:
> http://www.SynthModules.com
>   
> Yahoo! Groups Links

Re: [SynthModules] I had to do it!

2004-05-13 by Andrew Scheidler

This is good news.  I thought I was the only one who was making "PSIM
LED" programs and thought people might make fun of me :)

One favorite is to take the basic "sweep" program and expand it so that
all four DACs are swept, but each is 1024 behind the next so they
"chase" each other.  The blue leds fade/chase across from one side to
the other.  <spicoli> Awesome... </spicoli>

From what I've seen, the Noise Ring is the "cool led patterns" winner.

Bryce, is there going to be a PSIM Lava Lamp add-on?

Andrew

>>> davebr@earthlink.net 05/12/04 11:28 PM >>>
Ok, having grown up on a PDP-8, I just had to have a program to
display nifty patterns in the leds.  If you too have a desire to make
your PSIM look like it's doing something useful, you can find my
LIGHTS.BAS file in the miscellaneous folder.  Next, with the useful
print statement demonstrated in sertest.bas, I'll begin work on
porting wumpus ...

Dave




Be sure to check out the primary Web site at:
http://www.SynthModules.com
  
Yahoo! Groups Links

Re: [SynthModules] I had to do it!

2004-05-13 by john mahoney

----- Original Message ----- 
Show quoted textHide quoted text
From: "Andrew Scheidler" <xpandrew@ph.k12.in.us>
> 
> One favorite is to take the basic "sweep" program and expand it so that
> all four DACs are swept, but each is 1024 behind the next so they
> "chase" each other.  The blue leds fade/chase across from one side to
> the other.  <spicoli> Awesome... </spicoli>

That would be a quadrature ramp LFO, right? Useful AND entertaining!
--
john

Re: [SynthModules] I had to do it!

2004-05-13 by Brice D. Hornback

Andrew,

As far as the "cool LED patterns" winner... the Wiard Joystick Axis
Generator is THE best.  No question.  Especially when driven by a Noise ring
into a PSIM-1 and using the PSIM-1 to control the X and Y axis on the JAG.
It's better than a color organ!  Even if you never hook all ten CV outputs
of the JAG into anything... the module is the ultimate AWESOME light
display.

Think about it... two outputs from a PSIM-1 can drive the JAG nuts!  Stereo
or Quad panning?  That's child's play for this thing.  It starts to get real
fun when you start creating NEW sounds that no one has ever heard before.
Vector Synthesis, Joystick Controlled Timbre, etc.  All I can say is "WOW!".
I'll have to upload some samples I've done with the JAG.  I don't have
enough VCA's or VCO's to connect all the CV outputs of the JAG to... but
I've been doing things like controlling the filter cutoff with the Dome
height and NR Chance Input or a LFO speed, etc. with the Edge, etc.
Anyway... since I've gone from the JAG is the ultimate light display into an
advertisement for it... I might as well include the URL.  :-)
http://www.wiard.com/1200/JAG/jag.html

Although the JAG was designed to be controlled by a Joystick (hence Joystick
Axis Generator)... the PSIM-1 is the perfect controller for the JAG.
Imagine the possibilities!  You know all those emails I wrote in the
beginning about if you get a PSIM-1 you really need a Noise Ring?  Well...
you do.  But... also... you must get a JAG!!!  Just like the PSIM-1... it
would be impossible to describe everything you can do with the JAG.  Grant
REALLY out-did himself on that one!  I don't think a PSIM Lava Lamp add-on
could even top it.

Well... back to building modules.

Take care,
Brice
http://www.SynthModules.com

----- Original Message ----- 
Show quoted textHide quoted text
From: "Andrew Scheidler" <xpandrew@ph.k12.in.us>
To: <SynthModules@yahoogroups.com>
Sent: Thursday, May 13, 2004 8:20 AM
Subject: Re: [SynthModules] I had to do it!


> This is good news.  I thought I was the only one who was making "PSIM
> LED" programs and thought people might make fun of me :)
>
> One favorite is to take the basic "sweep" program and expand it so that
> all four DACs are swept, but each is 1024 behind the next so they
> "chase" each other.  The blue leds fade/chase across from one side to
> the other.  <spicoli> Awesome... </spicoli>
>
> >From what I've seen, the Noise Ring is the "cool led patterns" winner.
>
> Brice, is there going to be a PSIM Lava Lamp add-on?
>
> Andrew
>
> >>> davebr@earthlink.net 05/12/04 11:28 PM >>>
> Ok, having grown up on a PDP-8, I just had to have a program to
> display nifty patterns in the leds.  If you too have a desire to make
> your PSIM look like it's doing something useful, you can find my
> LIGHTS.BAS file in the miscellaneous folder.  Next, with the useful
> print statement demonstrated in sertest.bas, I'll begin work on
> porting wumpus ...
>
> Dave
>
>
>
>
> Be sure to check out the primary Web site at:
> http://www.SynthModules.com
>
> Yahoo! Groups Links
>
>
>
>
>
>
>
>
> Be sure to check out the primary Web site at:
> http://www.SynthModules.com
>
> Yahoo! Groups Links
>
>
>
>
>

variable naming (or, much ado about nothing?)

2004-05-13 by john mahoney

Brice had written:
> One of these days... I'll take *all* the code offline and fix it all then
> re-upload it.

While I'm going to make some comments below, I'd like you all to consider
this as sort of an opinion poll. Your answers will probably fall into 2
categories: "It ain't broke, don't fix it" and "Yeah, maybe we should do
[something]."

Before I get started, let me once again say a hearty "Thank you!" to those
trailblazers who have hacked a path through the jungle and -- to mix
metaphors -- laid a foundation on which we can all build. The following is
meant to be constructive, from the viewpoint of someone looking with
hindsight at the previous work.


One of the things that strikes me when I review the existing programs
(besides how cool and easy to program the PSIM is) is the variable naming.
Now, I understand that all you "early adopters" have gotten used to these
names. However, we all hope that the future will bring more people into the
PSIM fold, so an effort to make the standard names more understandable may
be good in the long run.


I. ALL CAPS
Why are we using all caps? The language is not case sensitive. Just curious.


II. Designator for common variables
There are a number of variables that have been defined by Brice, Grant, Dr
Mabuse, and others. These are the standard things that we will be using all
the time, such as ADC1 and DAC1V. I'm just wondering if it would be sensible
to adopt a prefix (or suffix) to identify them. Perhaps a lowercase "g" (as
in "global", although all vars are global) so we would have gADC1 and
gDAC1V. Maybe "psim" is a better prefix. (Maybe I should just shut up! ;-)

An alternative would be to leave the existing names alone, and use a prefix
on one's own variables: myNote, myLoop. But, one reason to clearly identify
the "standard" vars is so that users know immediately which variable names
should not be changed, because they are used in the common subroutines, etc.
Such a convention also helps users avoid stepping on variables used in the
low level subroutines. I admit that we are not dealing with large programs,
so I hate to make too much of this.


III. Names
Some variables have nice, descriptive names, like STOPLED. On the other
hand, the Stop button is IN5. Why is that?

And then there are ADC1, DAC1, and DAC1V. What's this about? I know that the
inputs are ADCs and outputs are DACs, but the PSIM is labeled IN-1 thru
IN-4, and OUT-1 thru OUT-4. Therefore, I suggest that ADC1 would be better
named "In1." DAC1V could be "Out1." Isn't that more intuitive?

(Or gIn1, gOut1, gDAC1... Gin and gout? I guess those are weird looking
names.)

As for DAC1, that's fine as-is (or as gDAC1 if we use prefixes). The
LOADALLDACS routine will move Out1 thru Out4 to DAC1 thru DAC4, but that's
not really user code. I'm not concerned about the var names used in low
level code.


That's about it. Please try not to flame me too severely if you disagree.
There are some IT pros here, so I'd like to hear what they *and* the novice
programmers have to say.

Wow, thanks for reading all the way through! :-)
--
john

Re: variable naming (or, much ado about nothing?)

2004-05-13 by grantrichter2001

> I. ALL CAPS
> Why are we using all caps? The language is not case 
sensitive. Just curious.

Basically, the same reason railroad tracks are the same width 
as Roman chariot wheels.

It started with the Victorian telegraph which had no lower case. 
The telegraph system was replaced with the Teletype system 
which had no lower case. The teletype machines were the 
orginal terminals for computers, so early computer programs 
were written without lower case.

(ASR-33 was a common model, here are a couple webpages:
http://www.vintage-computer.com/asr33.shtml
http://www.columbia.edu/acis/history/teletype.html
Note that a lot of Playboy centerfolds were scanned to make 
ASCII-porn and printed out on these machines, anybody who still 
has such a printout on original Teletype paper is the winner of 
the "Oldest Fhart" label.)

The standard "some" Olde Fharts use is to lower case 
'comments to seperate them from EXECUTABLE CODE.

What your end up with is upper case is IMPORTANT TO 
PROGRAM EXECUTION and lower case is "not as important to 
program execution".

Re: variable naming (or, much ado about nothing?)

2004-05-14 by drmabuce

Official Olde Phaarte Doc here,
Why... why why oh WHY! do you guys** always pop the most interesting
threads when I'm pinned under the worst schedule crunches........
>oh yeah<
MURPHY's law!
(thank goodness LUNCH is still sacred!)
;'>
ahem-
(cue: Elgar's 'Land of Hope and Glory' for parody effect of
ridiculously officious and facetious lecture from dr.mabuse ...)

> Now, I understand that all you "early adopters" have gotten used to
these
> names. However, we all hope that the future will bring more people
into the
> PSIM fold, so an effort to make the standard names more
understandable may
> be good in the long run.

> There are some IT pros here, 
> 
Hi my name is Mike and i'm an IT pro...
(group of hopeless, downtrodden-looking, middle-aged virgin geeks all
mumble:"hiiiiiiii mike")
because , at least one corporation is still willing to humor me with 
a paycheck to write code despite my competition from inmate slaves in
Hunan Provincial prisons.

...and i strongly endorse ALL standards as long as i can write
whatever i want in my code...
 
> 
> I. ALL CAPS
> Why are we using all caps? The language is not case sensitive. Just
curious.
> 
> 
in my case, pure habit! simple keypad finger-muscle-memory!
 In my day-gig i write and analyze several hundred lines of a form of
BASIC every day. This form requires all-caps to distinguish
executable code and i've worked in this environment for 20+ years,
thus: 'dyed-in-the-wool' doesn't even begin to how deeply ingrained
my BASIC keyboard habits are.

PS: (everything prof. Richter cited in his response was true and
complete - I was the first coder to port the teletype playboy images
from GCOS to the Microdata Reality OS1A-800 to the delight of
businessmen of modest means everywhere)


> II. Designator for common variables
> to adopt a prefix (or suffix) to identify them. Perhaps a lowercase
"g" (as
> in "global", although all vars are global) so we would have gADC1
and
> gDAC1V. Maybe "psim" is a better prefix. (Maybe I should just shut
up! ;-)
> 
> An alternative would be to leave the existing names alone, and use
a prefix
> on one's own variables: myNote, myLoop.
>

Copy/Paste is endemic to the way i build my PSIM code, so whatever
conventions were hardwired into the code i'm stealing determine the
standards i use. This tactic is a simple survival instinct i
developed in the 'wild'. There are, of course, cases where the
benefits of retrofitting/renaming a set of VARS outweighs the time
and effort required to do so, but by and large, the conventions i use
in a PSIM program are simply determined by the predilections of the
victim of my code-shoplifting. 

i officially recuse myself from this case because PSIM code is
recreation for me and i just scratch whatever itches at the moment.
For my part, if i were to start fretting over whether a piece of PSIM
(read: FUN/LEISURE) code  failed to pass muster vis-a-vis 'shop
standards' the work would start to resemble WORK and my attention
would be immediately shunted to LUNCH! and nothing would ever be
finished
;'>
 
> III. Names
> Some variables have nice, descriptive names, like STOPLED. On the
other
> hand, the Stop button is IN5. Why is that?

IN5, IN4 came from the BasicAtom datasheet -refers to hardware
interrupts on the BAsicAtomPro24

> 
> And then there are ADC1, DAC1, and DAC1V. What's this about? I know
that the
> inputs are ADCs and outputs are DACs, but the PSIM is labeled IN-1
thru
> IN-4, and OUT-1 thru OUT-4. 

(chuckle)
in ---some very early cases-- the PSIM had no panel labeled IN-1 etc.
 just ADC & DAC chips 


Therefore, I suggest that ADC1 would be better
> named "In1." DAC1V could be "Out1." Isn't that more intuitive?
>

it sounds more intuitive to me but-
(to paraphrase another Psimian)
one fellow's intuition is another's nightmare, that's the
ETERNAL wrangle with standards, whose nightmare gets declared
'intuitive'
 
> 
> 
> That's about it. Please try not to flame me too severely if you
disagree.

i realize i'm being glib, but i'm very protective of any
opportunities that i get for zany madcap misadventures in code
because of the hidebound nature of my day-gig work.
But---To get un-zany for a paragraph:
I have served on standards committees for two companies (that are
still in business- woo-hoo!) and the position that has evolved
between my ears is that only two approaches work:

1) Pax Romana 
TOP-down, Judeo-Christian, Monotheistic, ONE-way and ONE way ONLY
...and if you fail to conform it's off to tech-support with ye!
-i think this method has NO chance of survival in the PSIM community

2)Linux/Open Source Anarchy
  allow the cows to wander wherever they will for a few YEARS. After
a while, the most acceptable 'paths' will emerge 'organically' from
the grass... THEN (and only then) you pave those cowpaths. It's
rarely 'elegant' but you get the maximum amount of buy-in from the
maximum number of your 'cows'
-If the Psimians are hellbent on a standard, i recommend this method.
It will take a year or two after the PSIM is as widely distributed as
 Brice can make it --so this path requires great patience. In the
meanwhile prolific, prodigious and various schemes slug it out for
the hearts and minds of the coders. It's a messy process but my
experience is that yields a remarkably 'sustainable peace'

i overlook a lot of the Linux standards in my open source code too
(in bugs bunny voice, ain't i a stinker???)



> There are some IT pros here, so I'd like to hear what they *and*
the novice
> programmers have to say.

novice programmers????
here in america???? don't do it kids!!!!
just say NO!
move to the Kashmir and maintain ORACLE (harems are almost legal
there!)
or Belgium or Slovakia and write OutLook trojans in VB....
Look at what it's done to me!!!!
Run kids RUN!!! Run for your liiiiiiiiiives!!!!!!!!!



> 
> Wow, thanks for reading all the way through! :-)
> --

and likewise!!!!
enjoyed the rumpus!

-Doc

**
sorry for the chauvinism but so far it appears that the PSIM is as
much an all male pursuits as Snow-Calligraphy. I'd be delighted to
find out differently

Re: variable naming (or, much ado about nothing?)

2004-05-14 by djbrow54

> I. ALL CAPS
> Why are we using all caps? The language is not case sensitive. Just
curious.
I hate all caps but sometimes it does make the code easier for me to
read.  Takes longer to write it, though, so I prefer all lower case.

> II. Designator for common variables
I tried using easier names but many are reserved, especially in, out,
etc.  I use longer names sparated by _suffix to group similar 
variables 
> 
> III. Names
I tend to use abbreviations separated by _

I did a quick modification on my PSIM TEMPLATE code in the code
fragments folder with lower case and new variables and names.  Take a
look and compare the two.  I much prefer the latter (rev0.41).

Dave

Re: variable naming (or, much ado about nothing?)

2004-05-15 by grantrichter2001

> much an all male pursuits as Snow-Calligraphy. I'd be 

...watch out where the Huskies go!

F.Z. RIP

Actually, I'm going to start using the names of my favorite 
musicians and music terms for VARS. It seems appropriate. We 
will have to wait for functions to be added before we can "do a 
MURPHY on the data".

It should also be mentioned that there are already a hundred or 
so reserved keywords in the IDE, including the undocumented 
but usable entire register set for the Hitachi chip which is 
another hundred or so.

The biggest problem I'm having is avoiding all the prohibited 
keywords. But DUNK = DISCO + PUNK is probably OK with the 
compiler, if not basic good taste.

Re: variable naming (or, much ado about nothing?)

2004-05-15 by grantrichter2001

> > I. ALL CAPS
> > Why are we using all caps? The language is not case 
sensitive. Just
> curious.
> I hate all caps but sometimes it does make the code easier for 
me to
> read.  Takes longer to write it, though, so I prefer all lower 
case.

With all due respect, toggling the CAPS lock key between code 
and comments is a fairly painless discipline.

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.