View previous topic :: View next topic |
Author |
Message |
nap4414
Joined: 06 Aug 2004 Posts: 1 Location: bologna, italy
|
Posted: Fri Aug 06, 2004 7:37 am Post subject: Make a macro for reference line |
|
|
Hello, I'm a musician and I'm new to Dplot. I'm looking to make a macro to create fixed reference lines such as sound's frequencies of a musical scale. For ex. : 440 Hz for LA , 446 Hz for LA#, 493 Hz for SI , etc.
Can anyone help me?
Thank you very much
Giuliana |
|
Back to top |
|
|
DPlotAdmin Site Admin
Joined: 24 Jun 2003 Posts: 2310 Location: Vicksburg, Mississippi
|
Posted: Fri Aug 06, 2004 4:02 pm Post subject: |
|
|
Giuliana,
Shouldn't be much of a problem. In DPlot select File>Macro and enter a name for the macro, e.g. "Reflines". In the macro editor type
Refline(0,1,0,30,440,"LA")
Refline(0,1,0,30,446,"LA#")
Refline(0,1,0,30,493,"SI")
Parameters:
1: 0 says that the "value" entry (the 5th parameter) is a constant X
2: 1 is the line style (solid). Valid entries are 1-7
3: 0 is the line color (black)
4: 30 is the line width in 1000ths of inches
5: value
6: legend entry for the reference line. Use "" if you don't want an entry in the legend.
Save that macro and exit DPlot. If you then start DPlot with
[path\]dplot.exe "<filename>" /m reflines
then that macro will be run on the specified file. This is a one-time deal, though. Subsequent File>Open commands won't use that macro unless you run it. You may prefer to assign a shortcut key to the macro and run it after opening your files.
Please let me know if you have any questions. _________________ Visualize Your Data
support@dplot.com |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|