DPlot Forum Index DPlot
http://www.dplot.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Make a macro for reference line

 
Post new topic   Reply to topic    DPlot Forum Index -> Suggestions/Questions
View previous topic :: View next topic  
Author Message
nap4414



Joined: 06 Aug 2004
Posts: 1
Location: bologna, italy

PostPosted: Fri Aug 06, 2004 7:37 am    Post subject: Make a macro for reference line Reply with quote

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
View user's profile Send private message
DPlotAdmin
Site Admin


Joined: 24 Jun 2003
Posts: 2310
Location: Vicksburg, Mississippi

PostPosted: Fri Aug 06, 2004 4:02 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    DPlot Forum Index -> Suggestions/Questions All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
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