How to Create and Import Target Curve Files
This article will walk you through creating both spectrum and transfer function target curves for use in Smaart, then importing them.
Please note that transfer function target curves are only available in measurement-capable editions of Smaart 9.4 and above as well as Smaart Data Modeler. For ease of reading, these will collectively be referred to as "Smaart/DM".
Target Curve Filetype
To import a target curve file into Smaart, it must be a .crv file in either the correct spectrum or transfer function format. Below you will find guidelines and examples of both spectrum and transfer function target curve file creation from scratch using a text editor application.
Spectrum Target Curves
Spectrum target curve files are created with four heading lines, then two columns of data separated by a [Tab]. Using spaces or commas instead will not work and can even cause Smaart to crash when imported.
If experiencing crashing crashes after importing a target curve, it is advised that you remove it from Smaart's appropriate Target Curve folder and opened in a text editor to double-check formatting.
The four heading lines are as follows:
- Line:
- The Line header represents the line thickness of the target curve after import, from 1 to 5. I recommend starting starting with a size 2, as this value can be changed in Smaart/DM later.
- Color:
- The Color header represents the color of your target curve after import. It should be entered in HEX format. This can also be changed in Smaart/DM later.
- Show:
- The Show header represents if the target curve will be shown on the plot or not directly after import. I recommend a value of 1 (shown) here, but you can show and hide target curves using a checkbox in the target curve manager after import.
- Band:
- Spectrum target curves require their banding to be specified prior to being imported into Smaart. This is because spectrum target curves are locked to SPL values. When the banding setting is adjusted, so is the level at which the target curve is shown on the RTA plot. Please be sure to note what banding your data was set to on export if you are using exported data to create your target curve. Allowable values are 1, 3, 6, 12, 24 or 48 (full octave through 1/48-Octave). For example, a value of “3” means 1/3 octave banding.
- Type (Optional):
- Spectrum target curves have an optional line for "Type" in the header. If the Type header is not present, files are assumed to be in spectrum format.
Once the heading is complete, data can be added to the file in "Frequency Decibel" format (separated by a [Tab] indentation). Target curves require a minimum of 2 data entries with both frequency and decibel information in each. An example spectrum target curve is shown below:
Transfer Function Target Curves
Transfer function target curves are created with six heading lines followed by two columns for frequency and level. Like with spectrum target curves, these columns should be separated by a [Tab]. Using spaces or commas instead will not work and can even cause Smaart to crash when imported.
If experiencing crashing crashes after importing a target curve, it is advised that you remove it from Smaart's appropriate Target Curve folder and opened in a text editor to double-check formatting.
The six heading lines are as follows:
- Type:
- The Type header is what differentiates between Spectrum and Transfer Function target curves. When importing a transfer function target curve, please ensure that it has Type: TF
- The Type header is what differentiates between Spectrum and Transfer Function target curves. When importing a transfer function target curve, please ensure that it has Type: TF
- Line:
- The Line header represents the line thickness of the target curve after import. I recommend starting starting with a size 2, as this value can be changed in Smaart/DM later.
- Color:
- The Color header represents the color of your target curve after import. It should be entered in HEX format. This can also be changed in Smaart/DM later.
- Show:
- The Show header represents if the target curve will be shown on the plot or not directly after import. We recommend a value of 1 here so the target curve is automatically set to show but you can show and hide target curves using a checkbox in the target curve manager after import. Only values of 0 or 1 are accepted.
- Tolerance:
- When Tolerance is set to a nonzero value, a gradient shade of the target curve color will be drawn above and below the target curve. For example, a tolerance of 3.0 dB will draw a shaded area totaling 6 dB: 3 db above the trace and 3 dB below.
- Setting your target curve's tolerance to zero is a good starting point, as it can always be edited later on from the Target Curves dialog.
- When Tolerance is set to a nonzero value, a gradient shade of the target curve color will be drawn above and below the target curve. For example, a tolerance of 3.0 dB will draw a shaded area totaling 6 dB: 3 db above the trace and 3 dB below.
- Offset:
- The Offset header determines the y offset for the target curve. Offset is normalized to 1kHz.
Once the heading is complete, data can be added to the file in "Frequency Magnitude (dB)" format (again separated by a [Tab] indentation). Target curves require a minimum of 2 data entries with both frequency and magnitude information in each. Transfer function target curves accept both positive and negative magnitude values. An example excerpt of a transfer function target curve has been shown below:
Creating Target Curves from a Trace (9.5 and Beyond)
As of Smaart 9.5, creating a target curve has become a simplified process:
- Right-click the desired trace in the Data Bar. (This can be done with both spectrum traces and transfer function traces.)
- Select "Export as Target Curve"
- Name your new target curve and click "OK"
Creating TF Target Curves from a Trace (9.4.1 and Earlier)
If you are looking to create a target curve from an already captured trace, please follow the steps below:
- Right click on the trace in question in Smaart's data bar and select Export to ASCII.
- Open the exported text file on your computer.
- Remove the Phase and Coherence columns of data. Ensure to keep the Frequency and Magnitude columns.
- Depending on your operating system and text editor of choice you can do this by holding down the Alt/Option key while clicking and dragging over the last two columns of data only.
- Once the columns are highlighted, use the delete key to remove them.
- Remove all headers at the top of the file.
- Add the new TF Target Curve header. An example has been provided below:
- Ensure there is one blank line between the bottom of the header and the start of data points.
- Save the file in .crv format. All target curves must be in .crv format.
Once saved as .crv, the file is ready to be imported into Smaart using the instructions in the Importing Target Curves section of this article
Saving Your Curve as a .crv File
On Windows, using Notepad to save your target curve as a .crv file is as simple as clicking "Save As" and adding ".crv" to the end of your desired filename. Using TextEdit on Mac, however, requires some additional care to ensure it doesn't automatically save your target curve with a .txt or another extension that Smaart won't recognize:
1. Open a New Document in TextEdit.
2. Use the [Shift] + [Command] + [T] hotkey or click "Make Plain Text" in the "Format" dropdown menu to ensure that the document is in plain text formatting.
3. Enter the required header info previously discussed, leaving a single blank row before your spectrum data.
4. Paste your ASCII data from a trace or other source (or enter it manually), ensuring that it's formatted into 2 columns, with a [Tab] separating each frequency and its corresponding level. If spaces or commas are used to separate the data, Smaart will not be able to recognize the file.
5. Navigate to File>Save (or Save AS) and name your target curve to include the .crv extension (ex: TargetCurveName.crv). If you see the option "If no extension is provided, use .txt," ensure that it is unchecked and click "Save."
6. If you are still unable to import the curve into Smaart, right-click the file and check its Info. "Name & Extension" can sometimes show the name as having a ."crv.txt" extension. You can fix the second extension within this field so that the extension is ".crv" only.
Importing Target Curves
Target curves are imported and managed from the Target Curve manager, accessible via via selecting "Target Curves" from the Options menu or by using the [ALT/OPT]+[X] hotkey. In the target curve manager, ensure that you are on the correct tab for your data type: "Spectrum" or "Transfer Function", then select the "Import" button. A window will appear with your operating system's file browser.
To display your Target Curve, ensure that its "Show" box is checked in the Target Curve Manager. Then, click the appropriate window (RTA for Spectrum Target Curves or Magnitude for TF Target Curves) and use the [X] hotkey.
Note: Spectrum target curves will not be visible if "No Banding" is selected on the plot. Smoothing does will not effect transfer function target curves.
This menu also presents a visual interface to view and adjust individual target curve parameters such as Name, Color, Size and more.
Sample Target Curves
Smaart includes with it a set of Spectrum target curves.
These include Min/Max/Target curves for both LFE (Low Frequency Effect) and X-curves, most commonly used for tuning cinema sound systems.
Here is what these look like on the RTA plot (toggled with the [X] hotkey):
Smaart v9.4 (including the current Beta) and later will also come with a set of sample TF target curves, pictured below:
Here is what these look like on the Magnitude plot:
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article