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
Make a macro for reference line
Moderator: DPlotAdmin
- DPlotAdmin
- Posts: 2312
- Joined: Tue Jun 24, 2003 9:34 pm
- Location: Vicksburg, Mississippi
- Contact:
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.
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
support@dplot.com