<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Alex Creatune</title>
    <description>The latest articles on DEV Community by Alex Creatune (@creatunealex).</description>
    <link>https://dev.to/creatunealex</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4146900%2F9c83fbd2-c137-4f64-9643-36ca672eaa60.png</url>
      <title>DEV Community: Alex Creatune</title>
      <link>https://dev.to/creatunealex</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/creatunealex"/>
    <language>en</language>
    <item>
      <title>How to Check That a Converted File Has the Same Duration as the Source</title>
      <dc:creator>Alex Creatune</dc:creator>
      <pubDate>Thu, 03 Dec 2026 03:31:18 +0000</pubDate>
      <link>https://dev.to/creatunealex/how-to-check-that-a-converted-file-has-the-same-duration-as-the-source-2lho</link>
      <guid>https://dev.to/creatunealex/how-to-check-that-a-converted-file-has-the-same-duration-as-the-source-2lho</guid>
      <description>&lt;p&gt;A converted file can look finished because it plays. The next tool still needs the same length as the source: a 4:12 voice memo should not arrive as a 4:08 preview, and a 12-bar loop should not silently lose the last beat. This guide is a duration check you run on the source and the copy before you hand the copy on.&lt;/p&gt;

&lt;p&gt;I'm Alex from the Creatune team. On 3 December 2026 I checked the public &lt;a href="https://creatune.ai/audio-converter" rel="noopener noreferrer"&gt;Audio Converter&lt;/a&gt; page and turned the visible limits and steps into a verification method. I do not report a conversion I ran for this article.&lt;/p&gt;

&lt;h2&gt;
  
  
  What you need
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;The original file you will convert, kept as the source. The public page lists MP3, WAV, M4A, FLAC, and OGG.&lt;/li&gt;
&lt;li&gt;A clear job for the copy: MP3 for a convenient listening copy, WAV for another editing session, or FLAC when you want lossless storage of the rendered audio, as the page puts it.&lt;/li&gt;
&lt;li&gt;A place to write two durations, in seconds, to two decimal places.&lt;/li&gt;
&lt;li&gt;A computer that can run a short Python script. The script below uses mutagen, which reads the container duration of common formats.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The public page is local: your file stays on the device, conversion does not use generation credits, and edits are not saved if you leave or refresh. Download the copy before you close the tab. The same page states a size and length limit: 50 MB per file, up to 5 minutes, or 2.5 minutes on a small screen. If the source is longer than that, split it first; this check assumes both files are complete versions of the same take.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 1: Write the expected duration from the source
&lt;/h2&gt;

&lt;p&gt;Do this before you choose an output format. Open the source in any player that shows time, or run the script below on the source only, and write the number down.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Source file: voice-memo-2026-12-03.m4a
Source duration: 187.42 s
Next step: hand a WAV copy to an editor
Acceptance: converted duration within 0.05 s of 187.42 s
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;0.05 s is about one frame at 20 fps, and it is tight enough to catch a missing beat at 120 BPM (0.5 s per beat). If your next step is a video that must stay in sync, keep this tolerance. If you only need a listening copy, you can loosen it, but write the number you will actually use.&lt;/p&gt;

&lt;p&gt;The point of writing the source duration first is to stop you from treating the converted file as the only clock. If you only look at the copy, a short file still “looks” complete.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 2: Convert, then compare both files with the same script
&lt;/h2&gt;

&lt;p&gt;On the public &lt;a href="https://creatune.ai/audio-converter" rel="noopener noreferrer"&gt;Audio Converter&lt;/a&gt; page the steps are: Choose audio → adjust and preview → download your version. Choose the format your next tool accepts, download the copy, and keep the source.&lt;/p&gt;

&lt;p&gt;Save this as &lt;code&gt;compare_duration.py&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;sys&lt;/span&gt;
&lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="n"&gt;mutagen&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nc"&gt;File&lt;/span&gt;


&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;duration_seconds&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;path&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;str&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt; &lt;span class="kt"&gt;float&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;audio&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;File&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;path&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;audio&lt;/span&gt; &lt;span class="k"&gt;is&lt;/span&gt; &lt;span class="kc"&gt;None&lt;/span&gt; &lt;span class="ow"&gt;or&lt;/span&gt; &lt;span class="n"&gt;audio&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;info&lt;/span&gt; &lt;span class="k"&gt;is&lt;/span&gt; &lt;span class="kc"&gt;None&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;raise&lt;/span&gt; &lt;span class="nc"&gt;SystemExit&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"Could not read duration: {path}"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="kt"&gt;float&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;audio&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;info&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;length&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;


&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;main&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt; &lt;span class="kc"&gt;None&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="nb"&gt;len&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;sys&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;argv&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;!=&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;raise&lt;/span&gt; &lt;span class="nc"&gt;SystemExit&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"Usage: python compare_duration.py source.ext converted.ext"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;source&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;converted&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;sys&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;argv&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;sys&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;argv&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
    &lt;span class="n"&gt;src&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;duration_seconds&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;source&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;out&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;duration_seconds&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;converted&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;delta&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;out&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;src&lt;/span&gt;
    &lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"source:     {src:.3f} s"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"converted:  {out:.3f} s"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"delta:      {delta:+.3f} s"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;tolerance&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mf"&gt;0.05&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="nb"&gt;abs&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;delta&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;=&lt;/span&gt; &lt;span class="n"&gt;tolerance&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"PASS: within {tolerance:.2f} s"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;else&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"CHECK: difference is larger than {tolerance:.2f} s"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;


&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;__name__&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="s2"&gt;"__main__"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="nf"&gt;main&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Install mutagen once with &lt;code&gt;pip install mutagen&lt;/code&gt;, then run:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;python compare_duration.py voice-memo-2026-12-03.m4a voice-memo-2026-12-03.wav
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The script is a container-level check, not a claim about how the audio was encoded. A WAV copy preserves decoded samples; it does not restore detail already missing from a compressed source, which the public FAQ also states. The check here is only whether the timeline you will pass on still matches the source.&lt;/p&gt;

&lt;p&gt;If the difference is larger than your tolerance, do not immediately rename the copy as the delivery file. Confirm you downloaded the file you just converted, that you did not compare it with a different take, and that the source itself is within the page limit. Then run the same two paths again.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fz2hemxkpmyf0xtis3vgv.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fz2hemxkpmyf0xtis3vgv.png" alt="Audio Converter heading, supported formats, Choose audio control, and the 50 MB / 5 minute limit" width="800" height="430"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fg7mjnr89xbj75gzx2prf.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fg7mjnr89xbj75gzx2prf.png" alt="Page section on choosing MP3, WAV, or FLAC for the next step, with the published steps" width="800" height="260"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  How to check the result
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;The source duration is written down before the conversion, not copied from the output file.&lt;/li&gt;
&lt;li&gt;Both paths in the script point at the files you intend to compare.&lt;/li&gt;
&lt;li&gt;The delta is within the tolerance you wrote on the card, or you have a note for why you will not use this copy yet.&lt;/li&gt;
&lt;li&gt;The output format matches the next tool, and the source is still stored if you expect to convert again.&lt;/li&gt;
&lt;li&gt;The copy was downloaded before the tab was closed.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Common questions
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Why not just watch the player time on the converted file?&lt;/strong&gt;&lt;br&gt;
A player that shows 3:07 is useful, but it does not compare two files. The script prints both durations and the difference, so you are not rounding in your head.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Will converting MP3 to WAV make the file longer or “higher quality”?&lt;/strong&gt;&lt;br&gt;
A WAV file can be larger because it stores uncompressed samples. The public page is clear that this does not recover detail already removed from an MP3. This method only checks duration, not quality.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What if the two numbers differ by a few milliseconds?&lt;/strong&gt;&lt;br&gt;
Containers sometimes report duration at a slightly different precision. That is why the card has a tolerance. A gap of 0.01 s is not the same as a gap of a whole second. Write the number you will accept before you run the script.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Can I use this on files longer than five minutes?&lt;/strong&gt;&lt;br&gt;
The public converter is limited to 5 minutes (2.5 minutes on a small screen). If you need a longer file, cut it first and run the check on each part against the same region of the source. Do not treat a truncated upload as a full-length copy.&lt;/p&gt;

&lt;p&gt;A public comparison page for Creatune's tools is also at &lt;a href="https://creatuneai.pythonanywhere.com/" rel="noopener noreferrer"&gt;https://creatuneai.pythonanywhere.com/&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>howto</category>
      <category>tools</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>How to Write the Vocal Role and Comfortable Range for a Cloned-Voice Part</title>
      <dc:creator>Alex Creatune</dc:creator>
      <pubDate>Wed, 02 Dec 2026 03:40:40 +0000</pubDate>
      <link>https://dev.to/creatunealex/how-to-write-the-vocal-role-and-comfortable-range-for-a-cloned-voice-part-4obj</link>
      <guid>https://dev.to/creatunealex/how-to-write-the-vocal-role-and-comfortable-range-for-a-cloned-voice-part-4obj</guid>
      <description>&lt;p&gt;A cloned singing voice is easy to overwork. The sample may be a comfortable mid-register verse, and the next request is a belted climax or a stacked harmony the singer does not actually want to own. This guide is a short card that names the vocal role and a comfortable range first, so the sample you record later, and the part you assign later, stay in the same lane.&lt;/p&gt;

&lt;p&gt;I'm Alex from the Creatune team. On 2 December 2026 I checked the public &lt;a href="https://creatune.ai/ai-voice-clone" rel="noopener noreferrer"&gt;AI Voice Clone&lt;/a&gt; page and turned the visible fields into a writing method. I did not record a sample, train a voice, or generate a cover for this article, so there is no listening report here.&lt;/p&gt;

&lt;h2&gt;
  
  
  What you need
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;One part, named plainly: lead on the first verse, a unison double, or a lower harmony. Not “vocals” in general.&lt;/li&gt;
&lt;li&gt;A comfortable range in note names, written the way you would tell a singer: for example A3 to E5. Use the range the person can sing cleanly today, not the range they wish they had.&lt;/li&gt;
&lt;li&gt;A sample plan that stays inside that range: 15–30 seconds of dry solo singing, one voice, no backing music.&lt;/li&gt;
&lt;li&gt;A voice name you can reuse, such as &lt;code&gt;lead-mezzo-ref&lt;/code&gt;, so the card and the form agree.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The public page is built for cloning your own singing voice. The method below assumes you are writing the card for a voice you are allowed to record.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 1: Write a role-and-range card before you open the recorder
&lt;/h2&gt;

&lt;p&gt;Keep the role in the first line. Put the range in the second. The sample plan comes third, so it cannot drift into a different register.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Voice name: lead-mezzo-ref
Role: lead vocal on verse 1 only, not a harmony stack, not a whispered double
Comfortable range: A3 to E5
Sample plan: 20 seconds of dry solo singing inside this range; include clear vowels and one short consonant run; no belt, no whisper-only take
Later part: first verse, conversational, mid register; do not ask for a climax outside E5
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The range is a decision, not a decoration. If the later part needs a higher note than the card allows, change the part, or write a new card for a different role. Do not hide that change inside a vague voice name like “My Voice.”&lt;/p&gt;

&lt;p&gt;A useful test is to sing, or speak on pitch, the lowest and highest notes on the card. If either note is already a strain, tighten the range before you plan the sample.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 2: Check the span in note names
&lt;/h2&gt;

&lt;p&gt;It is easier to notice an oversized range in a small script than in a hurry, once the recorder is open. Save this as &lt;code&gt;check_range.py&lt;/code&gt; and run it on the card:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;re&lt;/span&gt;

&lt;span class="no"&gt;NOTE_TO_INDEX&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="s2"&gt;"C"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="s2"&gt;"C#"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="s2"&gt;"DB"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="s2"&gt;"D"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="s2"&gt;"D#"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="s2"&gt;"EB"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="s2"&gt;"E"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;4&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="s2"&gt;"F"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="s2"&gt;"F#"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;6&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="s2"&gt;"GB"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;6&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="s2"&gt;"G"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;7&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="s2"&gt;"G#"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;8&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="s2"&gt;"AB"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;8&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="s2"&gt;"A"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;9&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="s2"&gt;"A#"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="s2"&gt;"BB"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="s2"&gt;"B"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;11&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;


&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;to_midi&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;token&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;str&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt; &lt;span class="kt"&gt;int&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;token&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;token&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;strip&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;upper&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;replace&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"♭"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"B"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;match&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;re&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;fullmatch&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="s2"&gt;"([A-G])([#B]?)(-?\d+)"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;token&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="ow"&gt;not&lt;/span&gt; &lt;span class="k"&gt;match&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;raise&lt;/span&gt; &lt;span class="nc"&gt;ValueError&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"use a note like A3 or Eb4, not {token!r}"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;letter&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;accidental&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;octave&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;match&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;groups&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;name&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;letter&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;accidental&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;name&lt;/span&gt; &lt;span class="ow"&gt;not&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="no"&gt;NOTE_TO_INDEX&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;raise&lt;/span&gt; &lt;span class="nc"&gt;ValueError&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"unknown note name: {token}"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kt"&gt;int&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;octave&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="mi"&gt;12&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="no"&gt;NOTE_TO_INDEX&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;


&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;check_range&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;low&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;str&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;high&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;str&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;role&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;str&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt; &lt;span class="kc"&gt;None&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;start&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;to_midi&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;low&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;end&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;to_midi&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;high&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;span&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;end&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;start&lt;/span&gt;
    &lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"role: {role}"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"range: {low} to {high}"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"span: {span} semitones"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;end&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="n"&gt;start&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"check: the top note is below the bottom note"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;span&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;19&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"check: this span is wide for one part; confirm it is still comfortable"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="s2"&gt;"lead"&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;role&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;lower&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="ow"&gt;and&lt;/span&gt; &lt;span class="s2"&gt;"harmony"&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;role&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;lower&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"check: pick one role first, lead or harmony"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;


&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;__name__&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="s2"&gt;"__main__"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="nf"&gt;check_range&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"A3"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"E5"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"lead vocal on verse 1 only, not a harmony stack"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A typical result looks like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;role: lead vocal on verse 1 only, not a harmony stack
range: A3 to E5
span: 19 semitones
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Nineteen semitones is an octave plus a fifth, which is already a wide working range for one part. If the script warns that the span is wider still, narrow the card before you record. The script does not judge whether the notes are easy for a particular singer; it only makes the written span visible.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 3: Copy the name and the sample plan onto the public form, then stop
&lt;/h2&gt;

&lt;p&gt;Open the &lt;a href="https://creatune.ai/ai-voice-clone" rel="noopener noreferrer"&gt;AI Voice Clone&lt;/a&gt; page. On the form I checked, the visible controls include Voice name, with the example “My Voice,” and Voice sample, which asks for at least 15 seconds of singing and up to 30 seconds, or an uploaded file. The page also states that a clean solo vocal works best: one voice, no background music, 15–30 seconds. A My Voices list is present, and it asks you to sign in to see saved voices. Do not sign in for this method.&lt;/p&gt;

&lt;p&gt;Paste the voice name from the card into Voice name, so the later file is not called something generic. Keep the sample plan next to the recorder, and use it as the acceptance test for what you will record later: dry solo singing, inside the written range, with natural vowels and consonants, in a comfortable register. The public page’s own recording notes match that plan. They ask for a representative passage, a stable microphone distance, and little room echo, and they advise against a whisper-only or scream-only sample.&lt;/p&gt;

&lt;p&gt;Do not click the recorder, and do not upload a file, for this article. The method ends when the name on the form still matches the card, and the sample plan still fits the 15–30 second window.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fepn8p8iyh8zlgcmztfwk.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fepn8p8iyh8zlgcmztfwk.png" alt="AI Voice Clone heading, Voice name field, and Voice sample guidance for a 15–30 second solo take" width="800" height="430"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The same public page then lists four published steps: name and record the voice, let the sample be analyzed, sing a short verification phrase, and train the saved voice. After the voice shows Ready, the page points to two later jobs: use the voice in the AI Song Cover Generator, or choose My Voice in the AI Music Generator for a new song. This article stays on the first decision. The role-and-range card is what you will carry into those later forms. A cover or a new song that asks for notes outside the card is a different brief, not a reason to ignore the range you already wrote.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F50y2ujldiowmp8wj9e5n.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F50y2ujldiowmp8wj9e5n.png" alt="Published steps for naming, recording, verifying, and using a saved singing voice" width="800" height="300"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  How to check the result
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;The first line names one role, not “vocals.”&lt;/li&gt;
&lt;li&gt;The range is written in note names, and you can speak or sing both ends without strain.&lt;/li&gt;
&lt;li&gt;The sample plan is 15–30 seconds of dry solo singing inside that range.&lt;/li&gt;
&lt;li&gt;The Voice name field matches the card.&lt;/li&gt;
&lt;li&gt;The later part does not ask for a belt, whisper, or harmony stack that the card excluded.&lt;/li&gt;
&lt;li&gt;You have not treated a verification phrase or a later cover as part of this first writing step.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you later record and train the voice, listen to whether the sample itself stays in the written range. A sample that only contains the easiest mid notes, followed by a request for a much higher climax, is a reason to revise the card, not a reason to keep the same vague name.&lt;/p&gt;

&lt;h2&gt;
  
  
  Common questions
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Should the sample include the highest note on the card?&lt;/strong&gt;&lt;br&gt;
Include a representative passage in the comfortable register, with some movement, as the public page describes. You do not need to spend the whole 20 seconds on the top note. You do need the sample to sound like the role you named.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Can I use a finished mix as the upload?&lt;/strong&gt;&lt;br&gt;
The page allows an upload and will place a 30-second window on a longer file, but it still prefers a dry vocal. For this method, plan a clean solo take. A polished mix teaches the room, the backing, and the effects as well as the voice.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What if I want both a lead and a harmony?&lt;/strong&gt;&lt;br&gt;
Write two cards, with two voice names and two ranges if the parts sit differently. One card that says “lead and harmony” will not tell you which sample to record first.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why write the range before cloning, instead of adjusting it later?&lt;/strong&gt;&lt;br&gt;
The sample is what the model hears. A card written after a strained take is only a label on a sample you already made. The cheaper moment to decide the role and the range is before the recorder starts.&lt;/p&gt;

&lt;p&gt;A public comparison page for Creatune's tools is also at &lt;a href="https://creatuneai.pythonanywhere.com/" rel="noopener noreferrer"&gt;https://creatuneai.pythonanywhere.com/&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>tutorial</category>
      <category>writing</category>
    </item>
    <item>
      <title>How to Write a Text-to-Music Prompt That Names Only One Section First</title>
      <dc:creator>Alex Creatune</dc:creator>
      <pubDate>Tue, 01 Dec 2026 03:37:19 +0000</pubDate>
      <link>https://dev.to/creatunealex/how-to-write-a-text-to-music-prompt-that-names-only-one-section-first-3jo9</link>
      <guid>https://dev.to/creatunealex/how-to-write-a-text-to-music-prompt-that-names-only-one-section-first-3jo9</guid>
      <description>&lt;p&gt;A text-to-music prompt often tries to do too much at once: an intro, a verse, a lifted chorus, and a last-line fade, all in the same paragraph. The first 500 characters fill up, and the first job — one section — is no longer easy to check. This guide shows a short card that names only that first section, then how to paste it into a public generator form.&lt;/p&gt;

&lt;p&gt;I'm Alex from the Creatune team. The steps below are a writing method I checked against the public &lt;a href="https://creatune.ai/ai-music-generator" rel="noopener noreferrer"&gt;AI Music Generator&lt;/a&gt; page on 1 December 2026. I did not generate a track for this article, so there is no listening report here.&lt;/p&gt;

&lt;h2&gt;
  
  
  What you need
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;One section you actually want first, named in plain language: first verse, opening hook, or a short instrumental intro. Not “the whole song.”&lt;/li&gt;
&lt;li&gt;A few concrete cues for that section only: place, time of day, one or two instruments, vocal or instrumental, and a tempo range if you have one.&lt;/li&gt;
&lt;li&gt;A 500-character budget. The public prompt box is labelled Prompt and shows a 0/500 counter.&lt;/li&gt;
&lt;li&gt;A text file or note where the card can live before you open the page.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Stay in Prompt mode for this method. Own Lyrics is a different job: it is for pasting words, including verse/chorus structure tags. If you already have finished lyrics, keep them in a separate file. Do not pour them into this first prompt.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 1: Write a one-section card, on paper or in a file
&lt;/h2&gt;

&lt;p&gt;Name the section in the first line, then describe only that section. Say what you are leaving out, so a later chorus cannot sneak in as filler.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Section: first verse only.
A quiet kitchen at 11 p.m., kettle just clicked off.
Soft acoustic guitar and a close male vocal, unhurried, no drums yet.
Do not describe the chorus, the bridge, or a final lift.
Country-folk, warm, about 80 BPM.
Not a famous melody.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The “do not describe…” line is part of the job, not decoration. If you skip it, the next sentence often starts inventing a chorus because that is the habit of a full-song brief.&lt;/p&gt;

&lt;p&gt;A useful test is to read the card aloud and ask: if someone heard only this section, would they know what to listen for? If the answer depends on a later hook you have not written yet, cut that hook out of this card.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 2: Count the section words and the characters
&lt;/h2&gt;

&lt;p&gt;The public box stops at 500 characters. It is easier to notice a crowded brief in a small script than in the form itself. Save this as &lt;code&gt;check_prompt.py&lt;/code&gt; and run it on the card:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;re&lt;/span&gt;

&lt;span class="no"&gt;SECTION_WORDS&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="s2"&gt;"intro"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="s2"&gt;"verse"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="s2"&gt;"pre-chorus"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="s2"&gt;"prechorus"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="s2"&gt;"chorus"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="s2"&gt;"bridge"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="s2"&gt;"outro"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="s2"&gt;"hook"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="s2"&gt;"break"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="s2"&gt;"drop"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;


&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;section_names&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;prompt&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;str&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt; &lt;span class="kt"&gt;list&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="kt"&gt;str&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;found&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
    &lt;span class="n"&gt;lowered&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;prompt&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;lower&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;word&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="no"&gt;SECTION_WORDS&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;re&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;search&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;rf&lt;/span&gt;&lt;span class="s2"&gt;"\b{re.escape(word)}\b"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;lowered&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="n"&gt;found&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;append&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;word&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;found&lt;/span&gt;


&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;check_prompt&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;prompt&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;str&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;limit&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;int&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;500&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt; &lt;span class="kc"&gt;None&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;names&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;section_names&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;prompt&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"characters: {len(prompt)} / {limit}"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"section words:"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;", "&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;join&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;names&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="ow"&gt;or&lt;/span&gt; &lt;span class="s2"&gt;"(none)"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="nb"&gt;len&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;prompt&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;limit&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"check: shorten the card before pasting into a 500-character box"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="nb"&gt;len&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;names&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"check: more than one section is named; keep only the first job"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;


&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;__name__&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="s2"&gt;"__main__"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;sample&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"""Section: first verse only.
A quiet kitchen at 11 p.m., kettle just clicked off.
Soft acoustic guitar and a close male vocal, unhurried, no drums yet.
Do not describe the chorus, the bridge, or a final lift.
Country-folk, warm, about 80 BPM.
Not a famous melody."""&lt;/span&gt;
    &lt;span class="nf"&gt;check_prompt&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;sample&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A typical result looks like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;characters: 248 / 500
section words: verse, chorus, bridge
check: more than one section is named; keep only the first job
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That warning is expected for the sample: the card names the verse as the job, and it also names chorus and bridge in the exclusion line. If you want the script to treat “do not describe the chorus” as a pass, keep the exclusion on a line that starts with &lt;code&gt;Do not&lt;/code&gt; and extend the script later. For this article, the useful check is the character count, plus a manual read of the first line. The first line should still say one section only.&lt;/p&gt;

&lt;p&gt;If the character count is already close to 500, cut adjectives before you cut the section name or the exclusion line.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 3: Paste the card into the public generator, then stop
&lt;/h2&gt;

&lt;p&gt;Open the &lt;a href="https://creatune.ai/ai-music-generator" rel="noopener noreferrer"&gt;AI Music Generator&lt;/a&gt;. On the form I checked, the visible controls include Prompt, Own Lyrics, a model label, the Prompt field with a 0/500 counter, an Instrumental Only toggle, genre and mood chips such as Country, Folk, and Warm, Advanced Settings, and Create for free now.&lt;/p&gt;

&lt;p&gt;Paste the card into Prompt. Leave Own Lyrics unselected. If the verse should have a vocal, leave Instrumental Only off. If you only need a backing for that verse, turn it on and say so on the card as well, so the text and the toggle agree.&lt;/p&gt;

&lt;p&gt;You may select one or two chips that already appear on the card, for example Country or Warm. Do not add a festive or aggressive chip that the card never mentioned. Do not click Create for this article. The method ends when the pasted text is still one section, and the counter is within 500.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fmo7tk21xxs2b2zet0hh4.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fmo7tk21xxs2b2zet0hh4.png" alt="Free AI Music Generator heading, Prompt field with a one-section brief, and style chips" width="800" height="430"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The same public page also lists three published steps: Describe Your Song, Customize &amp;amp; Generate, and Download &amp;amp; Share. This article stays on the first step. Describe the mood, genre, and style of one section. Custom lyrics, negative prompts, and later extension of a track are separate jobs, on this page or on a later page, after the first section is clear.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F11lbnec4x1o2ew3vimxl.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F11lbnec4x1o2ew3vimxl.png" alt="Published three-step guide: describe the song, customize and generate, then download" width="800" height="316"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The page's own prompt examples follow the same direction. “Make me a song” is the weak version; “a melancholic indie rock ballad with clean electric guitar and soft female vocals” is the stronger one, because it names a texture. You can go one step further and say which section that texture belongs to.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to check the result
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;The first line of the card names one section, not “full song.”&lt;/li&gt;
&lt;li&gt;The body describes place, vocal or instrumental, and a small instrument list for that section only.&lt;/li&gt;
&lt;li&gt;The character count is 500 or less.&lt;/li&gt;
&lt;li&gt;The Prompt field contains that card, not a second block of unused lyrics.&lt;/li&gt;
&lt;li&gt;Instrumental Only matches the card.&lt;/li&gt;
&lt;li&gt;You have not treated a later chorus as part of this first brief.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you later generate, listen only for the section you named. A chorus that appears anyway is a reason to tighten the next card, not a reason to keep stacking sections into the same 500 characters.&lt;/p&gt;

&lt;h2&gt;
  
  
  Common questions
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Can I mention the chorus as something to avoid?&lt;/strong&gt;&lt;br&gt;
Yes, in one exclusion line. Keep the first line reserved for the section you do want. The job is still “first verse only,” not “verse plus a sketched chorus.”&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What if I already know the chorus lyric?&lt;/strong&gt;&lt;br&gt;
Keep it in a separate note. Use Own Lyrics later, with structure tags, when the job is to compose around those words. This article is only about the text-to-music prompt for the first section.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Should I fill Advanced Settings on this first pass?&lt;/strong&gt;&lt;br&gt;
Not for this method. The public page mentions negative prompts and other fine-tuning under Advanced Controls. Those help after the one-section card is stable. If you start there, it is harder to tell whether a later problem came from the brief or from an extra control.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why not describe the whole song in one prompt?&lt;/strong&gt;&lt;br&gt;
You can try, but the 500-character box fills quickly, and you lose a clean acceptance test. One section gives you something you can reread, recount, and, later, extend.&lt;/p&gt;

&lt;p&gt;A public comparison page for Creatune's tools is also at &lt;a href="https://creatuneai.pythonanywhere.com/" rel="noopener noreferrer"&gt;https://creatuneai.pythonanywhere.com/&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>music</category>
      <category>tutorial</category>
      <category>writing</category>
    </item>
    <item>
      <title>How to Choose One Image and One Action for a Christmas Song Brief</title>
      <dc:creator>Alex Creatune</dc:creator>
      <pubDate>Mon, 30 Nov 2026 03:27:46 +0000</pubDate>
      <link>https://dev.to/creatunealex/how-to-choose-one-image-and-one-action-for-a-christmas-song-brief-4l0a</link>
      <guid>https://dev.to/creatunealex/how-to-choose-one-image-and-one-action-for-a-christmas-song-brief-4l0a</guid>
      <description>&lt;p&gt;A Christmas song brief often starts as a list: snow, bells, a fireplace, a table, a name, a joke, and a closing wish. The generated lyric then tries to mention all of them, and the song sounds like a catalogue. The useful decision is earlier: pick one winter image and one action, then write only those into the brief.&lt;/p&gt;

&lt;p&gt;I'm Alex from the Creatune team. This is a pre-generation wording method for our public &lt;a href="https://creatune.ai/christmas-song-generator" rel="noopener noreferrer"&gt;AI Christmas Song Generator&lt;/a&gt;. I reviewed that page on 30 November 2026. The templates below are for you to fill in; this article does not include a generated song.&lt;/p&gt;

&lt;h2&gt;
  
  
  What you need before you open the page
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;One image you can point to, as if you were still in the room: a fogged kitchen window, a porch light left on, a pair of extra mugs on the table. Not a generic holiday set.&lt;/li&gt;
&lt;li&gt;One action that happens in that image: setting the mugs down, leaving the light on, opening the window once. One verb is enough.&lt;/li&gt;
&lt;li&gt;A short sound note: two instruments, or one instrument and a vocal description. This is support, not a second list.&lt;/li&gt;
&lt;li&gt;Optional: one name, used once, if the song is for a person. The name is not the image and not the action.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you already have a long list, do not paste it into the form. Cross out everything that is not the image or the action, then write the brief from what remains.&lt;/p&gt;

&lt;p&gt;The public form has a 500-character field and a set of holiday style chips, including Christmas Pop, Sleigh Bells, Cozy, Acoustic, Choir, Jazz, Kids, and Festive. The character limit is not an invitation to pack the list tighter. It is a reason to keep the two choices short.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 1: Write the image as a still frame, not as a theme
&lt;/h2&gt;

&lt;p&gt;Name what is in front of you, and where it sits. Leave out every object that is only "Christmas-like."&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Image (one frame):
The kitchen window is fogged from the kettle, late evening.
The street outside is only a smear of porch light.

Not the image:
fireplace, wrapping paper, a shop-window snow scene,
a tree already decorated, a full table of dishes
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A useful test: if you covered the words "Christmas" and "holiday," would the frame still be specific? "Fogged kitchen window, late evening" still is. "Cozy festive warmth" is not.&lt;/p&gt;

&lt;p&gt;If two frames feel equally true, keep the one with a smaller number of objects. You can change the frame later; you cannot hear a clear chorus if both frames stay in the brief.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 2: Write the action as one verb, in the same frame
&lt;/h2&gt;

&lt;p&gt;The action has to be possible in the image you already wrote. If the frame is the kitchen window, the action should happen there, not at a door on the other side of the house.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Action (one verb phrase):
We set two extra mugs on the table and leave them there.

Not a second plot:
we drive across town, we open every gift,
we sing at the door, we walk in the snow
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;"Leave them there" is part of the same action, not a new scene. If you need a second verb, it should be a finish of the first one (set down, then leave), not a new event.&lt;/p&gt;

&lt;p&gt;Write a rejection line for the catalogue you just crossed out:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Must avoid:
sleigh-bell inventory, fireplace list, shop-window snow,
a tour of every room, more than one name, a famous carol
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Step 3: Put the two choices into the 500-character field
&lt;/h2&gt;

&lt;p&gt;Open the &lt;a href="https://creatune.ai/christmas-song-generator" rel="noopener noreferrer"&gt;AI Christmas Song Generator&lt;/a&gt;. If you want a starting colour, pick one style chip, not several. Acoustic or Cozy is enough when the image is already a quiet kitchen. Leave Instrumental Only off if the song should say the action in words.&lt;/p&gt;

&lt;p&gt;Paste a brief that leads with the image and the action:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;One image: the kitchen window fogged from the kettle, late evening.
One action: we set two extra mugs on the table and leave them there.
Acoustic guitar and a close, unhurried vocal.
No sleigh-bell list, no fireplace inventory, no shop-window snow.
Not a famous carol. If a name appears, use Maya once in the second
verse, not in every line.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That text is well under 500 characters. If you later need to add a thank-you line, add it after the action, and cut a decoration word rather than a second scene.&lt;/p&gt;

&lt;p&gt;The public page also suggests starting with a person, a memory, and a sound. Those are useful when you already know the gift. This method sits one step earlier: the memory is reduced to one frame and one verb, so the 500-character field does not become a holiday inventory.&lt;/p&gt;

&lt;p&gt;Do not click Create Music Now for this checklist. The work in this article is finished when the brief contains only the image, the action, a short sound, and a short avoid list.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fwaoeu1qvukyyhbqlaiss.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fwaoeu1qvukyyhbqlaiss.png" alt="AI Christmas Song Generator heading, 500-character brief, and holiday style chips" width="800" height="362"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 4: Read the brief out loud before you generate
&lt;/h2&gt;

&lt;p&gt;Use this pass/fail list on the text itself:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Image still one frame?          yes / no
Action still one verb phrase?   yes / no
Sound is two items or fewer?    yes / no
Name appears at most once?      yes / no
Avoid list names the clichés?   yes / no
Character count under 500?      yes / no
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If any row is no, cut from the brief, do not add a clarifying sentence that introduces a new object. If the style chip already says Sleigh Bells, you do not also need bells in the paragraph.&lt;/p&gt;

&lt;p&gt;The page's published steps are: describe the song, generate and listen, then refine and share. Listening for the image and the action belongs to the second step, after you choose to generate. For this article, the check is whether those two things are still the only centre of the text.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ffsezyqywo6ezgbezhhpv.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ffsezyqywo6ezgbezhhpv.png" alt="Three published steps from idea to holiday song, and the planning notes on the same page" width="799" height="390"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  How to check the result
&lt;/h2&gt;

&lt;p&gt;After you generate, on a later pass, listen and read with the same two questions:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Can you still see the fogged window, or did the lyric wander into a generic street and a fireplace?&lt;/li&gt;
&lt;li&gt;Can you still hear the mugs being set down, or did a second plot replace that verb?&lt;/li&gt;
&lt;li&gt;If a name was allowed once, does it appear once, and is it spelled as you wrote it?&lt;/li&gt;
&lt;li&gt;Did a famous carol title or lyric slip in? The public page is built to write a new song; if the brief named a carol, take that name out and try again.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If one check fails, change only the brief: keep the image, keep the action, and remove the extra scene. Do not add a third object to "make it more Christmas."&lt;/p&gt;

&lt;h2&gt;
  
  
  Common questions
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Can I keep a name in the brief?&lt;/strong&gt;&lt;br&gt;
Yes, if it is not doing the work of the image or the action. Put the name once, and say where it may appear. Do not repeat it in every line.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What if the whole point of the song is a family joke?&lt;/strong&gt;&lt;br&gt;
Treat the joke as the action, or as the one line spoken in the frame. Do not also list the meal, the tree, and the drive home.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Should I turn on Instrumental Only?&lt;/strong&gt;&lt;br&gt;
Only if the song will sit under a video or a card with no vocal. An instrumental cannot carry the action in words, so the image has to be carried by the sound note alone. Keep that note short.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The style chips already include Sleigh Bells and Festive. Should I still write "no sleigh-bell list"?&lt;/strong&gt;&lt;br&gt;
Yes, if you did not choose that chip. The avoid list is for the paragraph, so the form does not receive two different holiday catalogues at once.&lt;/p&gt;

&lt;p&gt;A public comparison page for Creatune's tools is also at &lt;a href="https://creatuneai.pythonanywhere.com/" rel="noopener noreferrer"&gt;https://creatuneai.pythonanywhere.com/&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>music</category>
      <category>productivity</category>
      <category>writing</category>
    </item>
    <item>
      <title>How to Write Lyrics That Fit an 8-Bar Section Before You Generate Them</title>
      <dc:creator>Alex Creatune</dc:creator>
      <pubDate>Sun, 29 Nov 2026 03:36:07 +0000</pubDate>
      <link>https://dev.to/creatunealex/how-to-write-lyrics-that-fit-an-8-bar-section-before-you-generate-them-3p21</link>
      <guid>https://dev.to/creatunealex/how-to-write-lyrics-that-fit-an-8-bar-section-before-you-generate-them-3p21</guid>
      <description>&lt;p&gt;When a chorus is eight bars long, a lyric that looks fine on the page can still be too long to sing in that space. The useful work happens before you generate anything: decide how many lines the section can hold, and write that limit into the prompt.&lt;/p&gt;

&lt;p&gt;I'm Alex from the Creatune team. This is a pre-generation planning checklist for our public &lt;a href="https://creatune.ai/ai-lyrics-generator" rel="noopener noreferrer"&gt;AI Lyrics Generator&lt;/a&gt;. I reviewed that page on 29 November 2026. The templates below are for you to fill in; this article does not include generated lyrics.&lt;/p&gt;

&lt;h2&gt;
  
  
  What you need before you open the page
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;One section you already know is eight bars long, usually a chorus. If you only know the feeling of the song, still pick one section and treat it as eight bars for this pass.&lt;/li&gt;
&lt;li&gt;A working tempo, even if it is only a rehearsal number, such as 100 BPM in 4/4.&lt;/li&gt;
&lt;li&gt;The job of that section in one phrase: the title line, the decision, or the image people should remember.&lt;/li&gt;
&lt;li&gt;A short list of words you want in the section, and a short list of phrases you want to keep out.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Write the eight-bar budget first. If you invent the lyric while you type the prompt, the section length becomes an afterthought.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 1: Turn eight bars into a time budget and a line budget
&lt;/h2&gt;

&lt;p&gt;In 4/4, eight bars last &lt;code&gt;8 × 4&lt;/code&gt; beats. At a given BPM, that duration in seconds is:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;eight_bar_seconds&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;bpm&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;float&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;beats_per_bar&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;int&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;4&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt; &lt;span class="kt"&gt;float&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;beat_length&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mf"&gt;60.0&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="n"&gt;bpm&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="mi"&gt;8&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;beats_per_bar&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;beat_length&lt;/span&gt;

&lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;bpm&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;90&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;100&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;120&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;140&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;seconds&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;eight_bar_seconds&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;bpm&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"{bpm} BPM: {seconds:.1f}s for 8 bars in 4/4"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;At 100 BPM, eight bars last 19.2 seconds. At 120 BPM, they last 16.0 seconds. That is the window a singer has to deliver the section.&lt;/p&gt;

&lt;p&gt;A practical starting budget for an eight-bar chorus in 4/4 is four lines, with about two bars for each line, or eight short lines if the groove is tighter. Write the budget down before any wording:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Section: chorus, 8 bars, 4/4
Working tempo: 100 BPM (19.2s)
Line plan: 4 lines, about 2 bars each
Syllable target per line: 8–10
Hook line: line 1, repeated as line 1 of the second chorus
Must include: the place name, the decision verb
Must avoid: weather clichés, a second hook in line 3
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If a line needs more than two bars, cut a later line rather than stretching the section past eight bars.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 2: Write the four lines as a grid, not as a paragraph
&lt;/h2&gt;

&lt;p&gt;Put the hook in a fixed row. Leave the other rows for support lines that can change if the chorus returns.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Line 1 (hook, 8–10 syllables):  We keep the light on for the last train
Line 2 (image):                 The platform holds its breath with me
Line 3 (turn):                  I almost call, then let it go
Line 4 (land):                  The doors will close either way
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Count the spoken syllables. A short check you can run locally:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;re&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;syllable_count&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;line&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;str&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt; &lt;span class="kt"&gt;int&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;words&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;re&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;findall&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="s2"&gt;"[A-Za-z']+"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;line&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;lower&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;total&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;
    &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;word&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;words&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;groups&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;re&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;findall&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="s2"&gt;"[aeiouy]+"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;word&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;word&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;endswith&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"e"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="ow"&gt;and&lt;/span&gt; &lt;span class="nb"&gt;len&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;groups&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="n"&gt;groups&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;groups&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
        &lt;span class="n"&gt;total&lt;/span&gt; &lt;span class="o"&gt;+=&lt;/span&gt; &lt;span class="nb"&gt;max&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nb"&gt;len&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;groups&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;total&lt;/span&gt;

&lt;span class="n"&gt;lines&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
    &lt;span class="s2"&gt;"We keep the light on for the last train"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="s2"&gt;"The platform holds its breath with me"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="s2"&gt;"I almost call, then let it go"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="s2"&gt;"The doors will close either way"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;]&lt;/span&gt;
&lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;line&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;lines&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;syllable_count&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;line&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;line&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This counter is a rough English check, not a phonetic analysis. If one line is much longer than the others, shorten that line now. Do not wait to see whether the generated section feels close enough.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 3: Put the eight-bar brief into the public form
&lt;/h2&gt;

&lt;p&gt;Open the public &lt;a href="https://creatune.ai/ai-lyrics-generator" rel="noopener noreferrer"&gt;AI Lyrics Generator&lt;/a&gt; page. On 29 November 2026 the heading was "AI Lyrics Generator." The form showed a required Prompt field with a 400-character limit, plus Language, Mood, Style, and Structure controls, and a Generate action labelled as 1 credit.&lt;/p&gt;

&lt;p&gt;The published structure menu included Verse-Chorus, Verse-Chorus-Bridge, AABA, ABABCB, and Free Form. The published moods were Happy, Sad, Romantic, Energetic, Melancholic, Uplifting, and Auto. Style can be left on Auto, or set to a genre such as Pop, Rock, Hip-hop, Electronic, Jazz, or Country. The page also lists twelve output languages, including English.&lt;/p&gt;

&lt;p&gt;The page's own guidance is to describe a story or a feeling, then pick mood, style, structure, and language. For this article, add one more constraint: the eight-bar section must be named, and the line budget must be in the prompt.&lt;/p&gt;

&lt;p&gt;A prompt that stays inside 400 characters:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Indie pop, 100 BPM, 4/4. Chorus fits 8 bars as 4 lines, 8-10 syllables each.
Line 1 is the hook and must stay: "We keep the light on for the last train."
Line 2 is the platform image. Line 3 is the decision not to call. Line 4 lands on the closing doors.
Chorus twice; keep line 1 identical. No weather clichés. Sections: [Verse 1] [Chorus] [Verse 2] [Chorus]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Set Structure to Verse-Chorus if the song is that shape, or to Free Form if you need the section labels exactly as written. Set Language to English for this example. If the mood is more specific than the six named options, put that word in the prompt, as the page suggests for tones such as bittersweet.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F34c2o8mnfxuqus1at6eo.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F34c2o8mnfxuqus1at6eo.png" alt="Prompt, language, mood, style, and structure controls on the AI Lyrics Generator page" width="800" height="644"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 4: After generation, check the named section against the grid
&lt;/h2&gt;

&lt;p&gt;The public page states that output is split into labelled sections such as [Verse 1], [Pre-Chorus], [Chorus], [Bridge], and [Outro], and that you can edit any line. Use that edit step as a measurement, not as a rewrite of the whole song.&lt;/p&gt;

&lt;p&gt;Copy only the [Chorus] block into the same grid:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Planned line&lt;/th&gt;
&lt;th&gt;Generated line&lt;/th&gt;
&lt;th&gt;Syllables&lt;/th&gt;
&lt;th&gt;Fits 2 bars?&lt;/th&gt;
&lt;th&gt;Hook preserved?&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;1 hook&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;yes / no&lt;/td&gt;
&lt;td&gt;yes / no&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2 image&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;yes / no&lt;/td&gt;
&lt;td&gt;—&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3 turn&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;yes / no&lt;/td&gt;
&lt;td&gt;—&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;4 land&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;yes / no&lt;/td&gt;
&lt;td&gt;—&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Pass if all four lines stay inside the budget, the hook line is still line 1, and you can speak the four lines in about 19 seconds at 100 BPM, or in the duration your tempo gives you. If a generated line overruns, shorten that line in the editor. If the hook has moved to line 3, move it back before you think about turning the lyrics into a song.&lt;/p&gt;

&lt;p&gt;The page also offers a path to turn lyrics into music with a Generate Music action. Do that only after the eight-bar section already fits. A musical setting will not fix a chorus that needs twelve bars of words.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fih7300u4ea6jebvbinst.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fih7300u4ea6jebvbinst.png" alt="How to generate song lyrics: describe the song, generate and edit, then optionally turn the lyrics into a song" width="800" height="344"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  How to check the result
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;The prompt names the eight-bar section, the line count, and the hook line.&lt;/li&gt;
&lt;li&gt;The &lt;a href="https://dev.toor%20the%20section%20you%20named"&gt;Chorus&lt;/a&gt; has the number of lines you planned.&lt;/li&gt;
&lt;li&gt;No line is far above the syllable target.&lt;/li&gt;
&lt;li&gt;The hook is in the same position in every return of that section.&lt;/li&gt;
&lt;li&gt;You can speak the section in the duration that eight bars last at your working tempo.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If one check fails, change one thing: the grid, the prompt, or a single edited line.&lt;/p&gt;

&lt;h2&gt;
  
  
  Common questions
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Can I plan eight bars as eight short lines instead of four?&lt;/strong&gt;&lt;br&gt;
Yes, if the groove is one line per bar. Write that plan in the prompt so the section does not come back as four long sentences.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What if I do not know the tempo yet?&lt;/strong&gt;&lt;br&gt;
Pick a rehearsal tempo long enough to speak the lines comfortably, and record it in the brief. You can revise the syllable targets if the later tempo is much faster or slower.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Should the verses follow the same eight-bar grid?&lt;/strong&gt;&lt;br&gt;
Only if those verses are also eight bars. This article is about one section. Verses can use a looser line count, as long as the chorus stays inside its box.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The prompt field is limited to 400 characters. What do I keep?&lt;/strong&gt;&lt;br&gt;
Keep the tempo, the eight-bar line plan, the exact hook line, and the words to avoid. Story details for the verses can be shorter than the chorus constraints.&lt;/p&gt;

&lt;p&gt;A public comparison page for Creatune's tools is also at &lt;a href="https://creatuneai.pythonanywhere.com/" rel="noopener noreferrer"&gt;https://creatuneai.pythonanywhere.com/&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>music</category>
      <category>productivity</category>
      <category>writing</category>
    </item>
    <item>
      <title>How to Check That a Music Extension Starts at the Time You Marked</title>
      <dc:creator>Alex Creatune</dc:creator>
      <pubDate>Sat, 28 Nov 2026 03:33:23 +0000</pubDate>
      <link>https://dev.to/creatunealex/how-to-check-that-a-music-extension-starts-at-the-time-you-marked-3a88</link>
      <guid>https://dev.to/creatunealex/how-to-check-that-a-music-extension-starts-at-the-time-you-marked-3a88</guid>
      <description>&lt;p&gt;You marked 1:12 as the start of the new section. After the extension exists, the useful check is not whether the file got longer. It is whether the new music actually begins at that mark, and whether the join is the one you intended to hear.&lt;/p&gt;

&lt;p&gt;I'm Alex from the Creatune team. This guide is a time-code and listening checklist for our public &lt;a href="https://creatune.ai/ai-music-extender" rel="noopener noreferrer"&gt;AI Music Extender&lt;/a&gt; page. I reviewed that page on 28 November 2026. The templates below are for you to fill in; I did not generate an extension for this article.&lt;/p&gt;

&lt;h2&gt;
  
  
  What you need before you mark the time
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;A source track you have the right to use. On that date the public page listed MP3, WAV, or M4A, with a length of up to 8 minutes for an upload.&lt;/li&gt;
&lt;li&gt;One intended start time, written once in minutes and seconds, such as &lt;code&gt;1:12&lt;/code&gt; or &lt;code&gt;0:47.5&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;A short note that names what should begin at that time: verse 2, a bridge, a solo, or an outro.&lt;/li&gt;
&lt;li&gt;A way to listen across the join, from a few seconds before the mark into the new section.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Write the intended time before you open the tool. If you decide the time while you drag the marker, it is harder to notice a later mismatch.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 1: Write the intended start time in one place
&lt;/h2&gt;

&lt;p&gt;Pick a musical reason for the mark, then write the time code that belongs to it. A mark at the end of verse 1 is a different job from a mark in the middle of a chorus.&lt;/p&gt;

&lt;p&gt;Use a note like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Source: verse-demo.m4a, 2:05 total
Intended start: 1:12
Why this time: end of verse 1, after the last held syllable
New section should begin as: verse 2
Lyrics for the new section: yes / no  (if no, instrumental continuation)
I will listen from: 1:09 through the join and into the first phrase of the new section
Pass if: the new material is audible from 1:12, and 1:09–1:12 still sounds like the original ending
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If you work from bars rather than a clock, convert the bar number to a time code now, and keep only the time code in the note. The public page asks you to choose a timestamp, not a bar label.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 2: Place the marker on the public page and confirm the same time
&lt;/h2&gt;

&lt;p&gt;Open the public &lt;a href="https://creatune.ai/ai-music-extender" rel="noopener noreferrer"&gt;AI Music Extender&lt;/a&gt; page. On 28 November 2026 the heading was "AI Music Extender." The form showed a source-track area, an upload control, a prompt field, a lyrics field, and Simple / Advanced options. The upload path displayed "Sign in to upload your own track." A separate control for tracks already in My Music also asked you to sign in. The process action was labelled "Login to process."&lt;/p&gt;

&lt;p&gt;The published three-step sequence on the page was:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Choose your track.&lt;/li&gt;
&lt;li&gt;Pick your timestamp by dragging the marker to the exact point where the extension should begin.&lt;/li&gt;
&lt;li&gt;Generate the extension. You may add lyrics for the new section, or leave the lyrics field blank for an instrumental continuation.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The page states that the model analyzes what comes before your timestamp — genre, tempo, key, instrumentation, mood, and vocal style — and then composes a continuation from that point. Your job in this step is narrower: put the marker on the time you already wrote down.&lt;/p&gt;

&lt;p&gt;Confirm the mark against the note:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;What you wrote&lt;/th&gt;
&lt;th&gt;What to confirm on the page&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Intended start &lt;code&gt;1:12&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;The marker sits at 1:12, not at the end of the file by default&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;New section is verse 2 with lyrics&lt;/td&gt;
&lt;td&gt;The lyrics field contains only the new section, with a label such as &lt;code&gt;[Verse 2]&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;New section is instrumental&lt;/td&gt;
&lt;td&gt;The lyrics field is left blank&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;You already have the file in My Music&lt;/td&gt;
&lt;td&gt;Sign in and choose that track&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;You are uploading a local file&lt;/td&gt;
&lt;td&gt;Sign in and upload an MP3, WAV, or M4A within the published 8-minute limit&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Do not change the intended time in the note to match a casual drag. If the marker is wrong, move the marker.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F8xsuzzyt37n0qterotkz.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F8xsuzzyt37n0qterotkz.png" alt="Source track, prompt, lyrics, and timestamp controls on the AI Music Extender page" width="800" height="644"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 3: Convert the written time to seconds, so two writings of the same mark can be compared
&lt;/h2&gt;

&lt;p&gt;People write the same point as &lt;code&gt;1:12&lt;/code&gt;, &lt;code&gt;01:12.0&lt;/code&gt;, or &lt;code&gt;72s&lt;/code&gt;. Before you listen, turn every writing into seconds. The short script below does only that conversion. It does not analyze audio and it does not call a service.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;to_seconds&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;ts&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;str&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt; &lt;span class="kt"&gt;float&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;parts&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="kt"&gt;float&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;p&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;p&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;ts&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;strip&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;split&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;":"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="nb"&gt;len&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;parts&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;parts&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="nb"&gt;len&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;parts&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;minutes&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;seconds&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;parts&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;minutes&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="mi"&gt;60&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;seconds&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="nb"&gt;len&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;parts&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;hours&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;minutes&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;seconds&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;parts&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;hours&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="mi"&gt;3600&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;minutes&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="mi"&gt;60&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;seconds&lt;/span&gt;
    &lt;span class="k"&gt;raise&lt;/span&gt; &lt;span class="nc"&gt;ValueError&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"Unsupported timestamp: {ts}"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="n"&gt;intended&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"1:12"&lt;/span&gt;
&lt;span class="n"&gt;marked&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"1:12.0"&lt;/span&gt;
&lt;span class="n"&gt;listen_from&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"1:09"&lt;/span&gt;

&lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"intended_s"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nf"&gt;to_seconds&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;intended&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"marked_s"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nf"&gt;to_seconds&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;marked&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"delta_s"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nb"&gt;abs&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;to_seconds&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;marked&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="nf"&gt;to_seconds&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;intended&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"listen_from_s"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nf"&gt;to_seconds&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;listen_from&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For the example above, both writings are 72.0 seconds, the delta is 0.0, and the listen-from point is 69.0 seconds. If the delta is not 0, fix the marker or fix the note before you treat the extension as checked.&lt;/p&gt;

&lt;p&gt;If your source is 2:05 long, also confirm that the intended start is earlier than the end of the file:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;source_end&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"2:05"&lt;/span&gt;
&lt;span class="k"&gt;assert&lt;/span&gt; &lt;span class="nf"&gt;to_seconds&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;intended&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="nf"&gt;to_seconds&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;source_end&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"start must be inside the source"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Step 4: Listen across the join, not only at the new ending
&lt;/h2&gt;

&lt;p&gt;The public page describes a comparison that matters for this check: hear the original ending, then hear the original ending plus the new section. One published illustration used an original ending at 0:10 and an extended version at 0:30, with the new section starting from 0:10. Use the same idea with your own time code.&lt;/p&gt;

&lt;p&gt;After the extended file is available, listen in this order:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Play the original from your listen-from point, such as 1:09, up to the intended start at 1:12. This is the reference ending.&lt;/li&gt;
&lt;li&gt;Play the extended file from the same listen-from point, through 1:12, and into the first phrase of the new section.&lt;/li&gt;
&lt;li&gt;Ask two questions only: does the music before 1:12 still match the original ending, and does the new material begin at 1:12?&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Write the result into the same note:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Listen from: 1:09
Intended start: 1:12
Before the mark: matches the original ending / does not match
New material first heard at: 1:12 / earlier / later
First new phrase is: the verse 2 I asked for / something else
Decision: keep / mark a new time and extend again
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If the new material is clear but starts later than the mark, do not shorten the check to "the file is longer, so it worked." Write the time where you first hear the new phrase, then decide whether to move the marker.&lt;/p&gt;

&lt;p&gt;The page also suggests setting the timestamp a few seconds before a transition when you want musical context for the handoff. That is a composition choice. It is not the same as the check in this article. If you deliberately mark 1:09 so a transition at 1:12 has context, write both times, and check them as two different points.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fq2uhytue36i1gn7xu641.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fq2uhytue36i1gn7xu641.png" alt="How to extend a song: choose a track, pick a timestamp, and generate the extension" width="800" height="383"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  How to check the result
&lt;/h2&gt;

&lt;p&gt;Use the note as a pass/fail list, not as a review of the whole song:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The written intended start and the marker position convert to the same number of seconds.&lt;/li&gt;
&lt;li&gt;A listen from a few seconds before the mark still sounds like the original ending.&lt;/li&gt;
&lt;li&gt;The new section is audible from the intended start, not only at the new end of the file.&lt;/li&gt;
&lt;li&gt;The first new phrase matches the job you named: verse 2, bridge, solo, or outro.&lt;/li&gt;
&lt;li&gt;If you added lyrics, the new vocal line starts with the section you labelled. If you left lyrics blank, the continuation is instrumental, as requested.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If one item fails, change one thing in the next pass: the time, the lyrics for the new section, or the description of what should begin at the mark.&lt;/p&gt;

&lt;h2&gt;
  
  
  Common questions
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;The extended file is longer. Is that enough?&lt;/strong&gt;&lt;br&gt;
No. Length only shows that new audio was added. The check in this guide is whether that audio starts at the time you marked.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Should I mark the last second of the source, or a little earlier?&lt;/strong&gt;&lt;br&gt;
Write the time where you want the new section to begin. If you want the model to hear a short run-up to a transition, record both times in the note: the context mark, and the moment the new section should be obvious.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Can I leave the lyrics field empty?&lt;/strong&gt;&lt;br&gt;
Yes. The public page states that you can add lyrics for the new section, or leave the field blank for an instrumental extension.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What if I only know the bar number?&lt;/strong&gt;&lt;br&gt;
Convert the bar to a time code first, then place the marker on that time. Keep the time code in the checklist, so later listens refer to the same number.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>music</category>
      <category>tools</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>How to Give a Sheet-Music Conversion a Purpose Note</title>
      <dc:creator>Alex Creatune</dc:creator>
      <pubDate>Fri, 27 Nov 2026 05:11:56 +0000</pubDate>
      <link>https://dev.to/creatunealex/how-to-give-a-sheet-music-conversion-a-purpose-note-m8i</link>
      <guid>https://dev.to/creatunealex/how-to-give-a-sheet-music-conversion-a-purpose-note-m8i</guid>
      <description>&lt;p&gt;The same recording can become a rehearsal chart or the starting point of an arrangement. Those two jobs do not ask for the same files, and they do not ask you to check the same details.&lt;/p&gt;

&lt;p&gt;I'm Alex from the Creatune team. In this guide I walk through writing a short purpose note, then using our public Audio to Sheet Music page to convert a finished recording. I reviewed that page on 27 November 2026; the steps below use only the options and outputs visible there, together with a note you can fill in before you upload.&lt;/p&gt;

&lt;h2&gt;
  
  
  What you need before you convert
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;A finished recording you have the right to use, in MP3 or M4A. The public FAQ on that date stated that an MP3 should be between 10 seconds and 10 minutes, and no larger than 10 MB.&lt;/li&gt;
&lt;li&gt;A single purpose for this pass: a rehearsal chart, or the start of an arrangement.&lt;/li&gt;
&lt;li&gt;A short written note that names that purpose, the first output you will open, and the checks you will make.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Step 1: Choose rehearsal or arrangement, and write it down
&lt;/h2&gt;

&lt;p&gt;The public page describes two practical uses that matter here. One is to prepare a rehearsal chart: singers, accompanists, and small bands can capture the main tune and chord flow before rehearsal. The other is to start an arrangement in MusicXML: you can open the editable file in MusicXML-compatible notation software, correct the transcription, change instrumentation, and develop a fuller arrangement without entering every note by hand.&lt;/p&gt;

&lt;p&gt;Those are different jobs. A rehearsal pass usually needs a readable melody-and-chord chart you can put on a stand, as a Staff PDF or a Numbered PDF. An arrangement pass usually needs the MusicXML, because that is the file you will continue to edit.&lt;/p&gt;

&lt;p&gt;Write the choice before you convert, in a note like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Purpose: rehearsal / arrangement  (pick one)
Recording: verse-demo.mp3, 0:12–1:04, lead vocal clear, steady tempo
First output I will open: Staff PDF / Numbered PDF / MusicXML
I will also keep: Complete ZIP
I will review: key, rhythm, enharmonic spelling, lyric placement
For rehearsal I need: a readable melody-and-chord chart for the stand
For arrangement I need: MusicXML I can open in MusicXML-compatible notation software and develop further
This pass will not mix: a first-read chart and a later expansion of parts in the same check list
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If both purposes are still marked, pick the one you will use first. The conversion itself produces every format in one submission, but your checks should still follow one purpose at a time. You can come back to the other files with a second note.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 2: Open the page and confirm the source and the convert action
&lt;/h2&gt;

&lt;p&gt;Open the public &lt;a href="https://creatune.ai/audio-to-sheet-music" rel="noopener noreferrer"&gt;Audio to Sheet Music&lt;/a&gt; page. On 27 November 2026 the heading was "Convert audio to sheet music online." The source area offered two doors: upload audio, or choose from My Songs after you sign in. The page listed MP3 and M4A for the upload path. The action button read "Convert to Sheet Music · 50 credits."&lt;/p&gt;

&lt;p&gt;Confirm those controls against the file you already have:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;What you have&lt;/th&gt;
&lt;th&gt;What to use on the page&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;An MP3 or M4A within the published limits&lt;/td&gt;
&lt;td&gt;Upload that file&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;A compatible track already in My Songs&lt;/td&gt;
&lt;td&gt;Sign in and choose it from My Songs&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;A recording longer than 10 minutes, or larger than 10 MB&lt;/td&gt;
&lt;td&gt;Export a section that fits the published limits first&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The 50-credit figure is the cost shown on the button.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fhudy3slbtq9qhf87mbxk.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fhudy3slbtq9qhf87mbxk.png" alt="Upload area, page title, and Convert to Sheet Music button on the Audio to Sheet Music page" width="800" height="644"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 3: Name the first output you will inspect
&lt;/h2&gt;

&lt;p&gt;The page describes the work in three stages. First you choose a finished recording. Then the transcription identifies melody, chords, notation, and timed lyric data. Then you preview and download the files.&lt;/p&gt;

&lt;p&gt;One submission creates every output. On 27 November 2026 the published formats were:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Staff PDF: traditional five-line notation for the main melody and chords&lt;/li&gt;
&lt;li&gt;Numbered PDF: numbered notation for quick reading and practice&lt;/li&gt;
&lt;li&gt;MusicXML: an editable interchange format for MusicXML-compatible notation software&lt;/li&gt;
&lt;li&gt;Lyrics JSON: machine-readable lyric lines with timing information&lt;/li&gt;
&lt;li&gt;Complete ZIP: the bundle that contains every result&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Add the first file you will open to the purpose note. For a rehearsal chart, that is usually the Staff PDF or the Numbered PDF. For an arrangement, that is usually the MusicXML, with the Complete ZIP kept so every format stays together.&lt;/p&gt;

&lt;p&gt;The page also states that the converter follows the musical foreground — typically a lead vocal, a solo instrument, or another prominent melody — along with chord movement and lyric timing. Name that lead in the note.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fj4i0w0vhox32fh0mmsos.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fj4i0w0vhox32fh0mmsos.png" alt="Output formats and the rehearsal-chart and MusicXML arrangement uses on the Audio to Sheet Music page" width="800" height="266"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 4: Write the checks that belong to that purpose
&lt;/h2&gt;

&lt;p&gt;The public page asks you to review key, rhythm, enharmonic spelling, and lyric placement before rehearsal, publication, or performance. It also treats the result as an editable first draft, especially where timing is expressive, ornaments are improvised, or several instruments share a register.&lt;/p&gt;

&lt;p&gt;Write those checks now, in language that matches the purpose you chose:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Purpose: rehearsal
Recording: verse-demo.mp3, lead vocal on the verse and chorus
First file to open: Staff PDF
I will check: the key of the verse, whether the chorus rhythm matches what I sing, enharmonic spelling of the accidentals in the bridge, and lyric placement on the held notes at 0:48
I will keep for later editing: the MusicXML and the Complete ZIP
I will treat the PDFs as: a readable first draft for the stand
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Or, for an arrangement:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Purpose: arrangement
Recording: verse-demo.mp3, lead vocal on the verse and chorus
First file to open: MusicXML
I will check: the key, the rhythm of the main melody, enharmonic spelling, and lyric placement where words are present
Then I will: correct the transcription and develop further parts in MusicXML-compatible notation software
I will keep as a reading copy: the Staff PDF
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Fill the blanks after the preview is in front of you.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to check the purpose note before you convert
&lt;/h2&gt;

&lt;p&gt;You can judge the note on its own:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The purpose is either rehearsal or arrangement, not both in the same line.&lt;/li&gt;
&lt;li&gt;The first output matches that purpose: a Staff or Numbered PDF for a chart, MusicXML for an arrangement you will continue to edit.&lt;/li&gt;
&lt;li&gt;The review line names key, rhythm, enharmonic spelling, and lyric placement, or a subset that still belongs to the recording.&lt;/li&gt;
&lt;li&gt;The source file is an MP3 or M4A that fits the published duration and size limits, or a track you will select from My Songs after sign-in.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If a line fails, fix that line only. Asking the first draft to serve as both a stand chart and a finished expansion of parts mixes the two purposes again.&lt;/p&gt;

&lt;h2&gt;
  
  
  Common questions
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Can I keep every format even if this pass is only for rehearsal?&lt;/strong&gt; Yes. The page states that one submission creates every output and stores it. The purpose note only decides which file you open first and what you will review. Keep the Complete ZIP so the MusicXML is still there if you later start an arrangement.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What if I need both a chart and an arrangement?&lt;/strong&gt; Write two notes, or write one note that still names a first job. Rehearse from the melody-and-chord PDFs, then open the MusicXML when you are ready to expand the parts. The same conversion can serve both, as long as the checks stay attached to one purpose at a time.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Does the conversion need a recording with lyrics?&lt;/strong&gt; No. The page includes timed lyric data among the things it identifies, and it offers a Lyrics JSON file, but the Staff PDF and MusicXML still centre on the main melody and chords. If your recording has no words, leave lyric placement out of the check list and keep the other reviews.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Should I start from a dense live mix because it has more parts to arrange?&lt;/strong&gt; The page recommends a strong solo voice or lead instrument, a steady tempo, and fewer dense overlapping parts, because those choices help the melody stand out. For an arrangement pass, start with a recording where the lead is clear, then develop further instrumentation in the MusicXML.&lt;/p&gt;

&lt;h2&gt;
  
  
  Follow Creatune
&lt;/h2&gt;

&lt;p&gt;You can also find Creatune on these public profiles and pages:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://www.indiehackers.com/product/creatune" rel="noopener noreferrer"&gt;Creatune on Indie Hackers&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://myspace.com/creatuneai" rel="noopener noreferrer"&gt;Creatune's profile on Myspace&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.threads.com/@creatuneai" rel="noopener noreferrer"&gt;Creatune on Threads&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://creatuneai.mmm.page/creatune-ai" rel="noopener noreferrer"&gt;Creatune's page on mmm.page&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://creatuneai.forumotion.com/t2-creatune-ai-ai-music-generator-for-songs-lyrics-and-music-videos" rel="noopener noreferrer"&gt;Creatune's forum on Forumotion&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
    </item>
    <item>
      <title>How to Prepare a Single-Line Hummed Take Before Converting It to MIDI</title>
      <dc:creator>Alex Creatune</dc:creator>
      <pubDate>Thu, 26 Nov 2026 15:37:41 +0000</pubDate>
      <link>https://dev.to/creatunealex/how-to-prepare-a-single-line-hummed-take-before-converting-it-to-midi-2j87</link>
      <guid>https://dev.to/creatunealex/how-to-prepare-a-single-line-hummed-take-before-converting-it-to-midi-2j87</guid>
      <description>&lt;p&gt;If the hummed take includes a second voice, a long silent lead-in, or a lot of room sound, the MIDI draft is harder to judge later. You will not know whether a stray note came from the melody you meant to keep, or from something that was already in the recording.&lt;/p&gt;

&lt;p&gt;I'm Alex from the Creatune team. In this guide I show how to prepare a single-line hummed take before using our public &lt;a href="https://creatune.ai/ai-audio-to-midi" rel="noopener noreferrer"&gt;AI Audio to MIDI Converter&lt;/a&gt;. I checked that page on 26 November 2026. The lists below are a preparation template; I did not record a take or run a conversion.&lt;/p&gt;

&lt;h2&gt;
  
  
  What you need before you record
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;A short phrase you can hum in one voice, on one line: a chorus hook, a verse fragment, or a bass line you can sing on one pitch at a time.&lt;/li&gt;
&lt;li&gt;A quiet enough place to record, or a plan to capture a new take in the browser.&lt;/li&gt;
&lt;li&gt;One sentence about what the notes are for after conversion, for example "try this hook on a piano sound" or "edit the rhythm of the last four notes."&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This article stops at the preparation of the take. It does not walk through signing in, starting the conversion, or editing the MIDI file.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 1: Write down that the take is one line, in one voice
&lt;/h2&gt;

&lt;p&gt;The public page treats a focused monophonic source as the clearest starting point. On 26 November 2026 it said that melodies, bass lines, whistles, and simple leads usually convert more cleanly than dense full mixes, and that a focused monophonic source usually becomes a cleaner draft than layered or noisy audio. The same page also notes that short hummed or sung melodies are a practical source for voice-to-MIDI capture when the recording is clean and focused on one melody.&lt;/p&gt;

&lt;p&gt;Write that choice before you press record:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Phrase: hummed chorus hook, about four bars
Voices at once: one
I want: a single-line melody I can edit as MIDI
I do not want: a harmony line, a second hummed pass, or a guitar underneath
Use after conversion: try the hook on a piano sound and tighten the last four notes
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If "voices at once" is more than one, you are not yet preparing a single-line take. Hum the melody alone, or wait for a later pass if you also need a second part.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F8cw6cgo3y6m32qc6ysle.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F8cw6cgo3y6m32qc6ysle.png" alt="which audio converts cleaner" width="800" height="372"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 2: Prepare the take so the phrase is easy to hear
&lt;/h2&gt;

&lt;p&gt;The public page groups the useful preparation under a tight, clear recording:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Trim silence and background noise so the converter can focus on the phrase you care about.&lt;/li&gt;
&lt;li&gt;Keep one voice or instrument forward, and avoid reverb-heavy rooms.&lt;/li&gt;
&lt;li&gt;Use a steady level.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Those points are for the take itself, not for a later mix. A count-in, a long pause after the last note, or a conversation in the next room all become part of the audio the page will read.&lt;/p&gt;

&lt;p&gt;Fill this in before you record, then record only what the sheet already names:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Room: small bedroom, door closed, no TV
Distance: phone about 20 cm from the mouth
Level: one comfortable hummed volume, no late crescendo
Start: I begin on the first note of the hook, with no spoken count-in
End: I stop at the last note, then wait a beat before I stop the recording
Take to keep: take 2, 0:00–0:11
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If you already have a file, the same sheet still applies. Keep only the phrase, and drop a second hummed layer if you added one "for safety."&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 3: Choose a browser recording or a short file, then open the page
&lt;/h2&gt;

&lt;p&gt;On 26 November 2026 the public page offered two doors: upload a file, or record a microphone take in the browser. It listed these upload formats: &lt;code&gt;.wav&lt;/code&gt;, &lt;code&gt;.mp3&lt;/code&gt;, &lt;code&gt;.m4a&lt;/code&gt;, &lt;code&gt;.flac&lt;/code&gt;, &lt;code&gt;.ogg&lt;/code&gt;, &lt;code&gt;.webm&lt;/code&gt;. The short description at the top also names MP3, WAV, FLAC, OGG, M4A, or a microphone recording. The three-step section tells you to start with a short file or a microphone take captured directly in the browser.&lt;/p&gt;

&lt;p&gt;Choose the door that matches what you actually have:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;What you have after Step 2&lt;/th&gt;
&lt;th&gt;Door to use&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;A new hummed take, not yet a file&lt;/td&gt;
&lt;td&gt;Microphone recording on the page&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;A short file in one of the listed extensions&lt;/td&gt;
&lt;td&gt;Upload that file&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;A long voice memo with talk before the hook&lt;/td&gt;
&lt;td&gt;Export only the phrase first, then upload&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Then open the public &lt;a href="https://creatune.ai/ai-audio-to-midi" rel="noopener noreferrer"&gt;AI Audio to MIDI Converter&lt;/a&gt; and confirm the same controls: the upload area, the supported-format list, and the option to record in the browser. This article does not start the conversion. The check is only that the door you chose is the one the page actually offers.&lt;/p&gt;

&lt;p&gt;If you want a machine-readable reminder of duration and channel count on a take you already saved, you can run this script on that file. It prints numbers; it does not convert anything.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;sys&lt;/span&gt;
&lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="n"&gt;pathlib&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nc"&gt;Path&lt;/span&gt;

&lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="n"&gt;pydub&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nc"&gt;AudioSegment&lt;/span&gt;

&lt;span class="n"&gt;path&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;Path&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;sys&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;argv&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;audio&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;AudioSegment&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;from_file&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;path&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;duration_s&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;len&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;audio&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="mi"&gt;1000&lt;/span&gt;
&lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"file: {path.name}"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"duration_s: {duration_s:.2f}"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"channels: {audio.channels}"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"frame_rate: {audio.frame_rate}"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"single-line check: prefer one channel and only the hummed phrase"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The public page does not set a required duration for a hummed take. The script is there so you can see whether the file still contains a long lead-in, not to invent a limit the page does not publish.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fz9rlrhthxjes2fds7e8d.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fz9rlrhthxjes2fds7e8d.png" alt="upload/record/formats" width="800" height="500"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 4: Write the MIDI checks before you convert
&lt;/h2&gt;

&lt;p&gt;The public page tells you to treat the MIDI as an editable draft, especially after an expressive performance, and to expect later work on timing, note length, and extra notes. Write those checks now, while you still remember the take:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;I will accept the draft if: I can follow the hook as one melody line
I will correct first: any note that is clearly not in the hummed phrase
I will tighten later: the length of the last held note
I will remake the take if: the recording still has a second voice or a long silence
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You have not converted anything yet. The list keeps the later editorial work attached to the take you prepared, instead of turning into a new set of wishes once the notes appear.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to check the preparation before you convert
&lt;/h2&gt;

&lt;p&gt;You can judge the sheet on its own:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The take is described as one voice and one line.&lt;/li&gt;
&lt;li&gt;The room, the start, and the end are written, and the kept region is only the phrase.&lt;/li&gt;
&lt;li&gt;The door in Step 3 matches a browser recording or a listed file format.&lt;/li&gt;
&lt;li&gt;The MIDI checks already say what would make you keep the draft, correct it, or record again.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If a line fails, fix that line only. Adding a second hummed harmony "to make it richer" undoes Step 1.&lt;/p&gt;

&lt;h2&gt;
  
  
  Common questions
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Can the take be sung instead of hummed?&lt;/strong&gt; Yes. The public page groups short hummed or sung melodies together, as long as the recording is clean and focused on one melody. The preparation is the same: one line, a tight take, then the matching door on the page.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why not hum a chord to "give the MIDI more notes"?&lt;/strong&gt; Because this guide is for a single-line take. The page's own comparison treats a single melody as the clearest outline, and a chord or full mix as a rougher sketch. If you need harmony, prepare the melody first.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Should I leave a spoken count-in so I can find the first note?&lt;/strong&gt; Not for this preparation. The page asks you to trim silence so the phrase is what the converter focuses on. Count in your head, then start on the first hummed note.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What if I only have a mixed song, not a hummed take?&lt;/strong&gt; That is a different source. The public page suggests isolating a melodic stem first when the source is a full mix. This article stays with the hummed single line you can record now.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>music</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>How to Read a MIDI File with Python Before Editing It</title>
      <dc:creator>Alex Creatune</dc:creator>
      <pubDate>Sun, 15 Nov 2026 08:06:27 +0000</pubDate>
      <link>https://dev.to/creatunealex/how-to-read-a-midi-file-with-python-before-editing-it-3oee</link>
      <guid>https://dev.to/creatunealex/how-to-read-a-midi-file-with-python-before-editing-it-3oee</guid>
      <description>&lt;p&gt;A MIDI file can open without an obvious error and still contain a track you did not expect, a pitch outside the part you meant to keep, or a note event that never closes. A quick file-level pass gives you a map before you move notes in a piano roll.&lt;/p&gt;

&lt;p&gt;I’m Alex from the Creatune team. This is a reusable inspection template based on the public &lt;a href="https://creatune.ai/midi-editor" rel="noopener noreferrer"&gt;MIDI Editor guide&lt;/a&gt;, checked on November 15, 2026. The code below is a method, not a report from a file I processed.&lt;/p&gt;

&lt;h2&gt;
  
  
  What this check can tell you
&lt;/h2&gt;

&lt;p&gt;MIDI stores events rather than recorded sound. A note event has a pitch, a start position, a duration and a velocity value. The file can also contain several tracks and channels. A piano-roll editor makes those values visible; a short script can summarize them before you start editing.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F4txr9eoqeeaaffrdx4a4.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F4txr9eoqeeaaffrdx4a4.png" alt="Public MIDI Editor workflow from an audio idea to a DAW" width="800" height="471"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This pass reports each track’s event count, note count, pitch range, velocity range and unmatched note starts or ends. It does not decide whether a phrase is musical, identify the instrument sound, or prove that a conversion is correct.&lt;/p&gt;

&lt;h2&gt;
  
  
  Install the reader
&lt;/h2&gt;

&lt;p&gt;Use Python 3 and the &lt;code&gt;mido&lt;/code&gt; package. Save the MIDI file locally and install the package in the same environment where you will run the script:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;python -m pip install mido
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The file stays on your computer for this inspection. The script only reads the MIDI structure; it does not render audio or change the file.&lt;/p&gt;

&lt;h2&gt;
  
  
  Run this reusable inspection template
&lt;/h2&gt;

&lt;p&gt;Save the following as &lt;code&gt;inspect_midi.py&lt;/code&gt;, then replace &lt;code&gt;phrase.mid&lt;/code&gt; with the path to your own MIDI file:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="n"&gt;collections&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;defaultdict&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;deque&lt;/span&gt;
&lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="n"&gt;pathlib&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nc"&gt;Path&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;sys&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;mido&lt;/span&gt;

&lt;span class="n"&gt;path&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;Path&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;sys&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;argv&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="nb"&gt;len&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;sys&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;argv&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt; &lt;span class="k"&gt;else&lt;/span&gt; &lt;span class="s2"&gt;"phrase.mid"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;midi&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;mido&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;MidiFile&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;path&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"file: {path.name}"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"format: {midi.type}; ticks per beat: {midi.ticks_per_beat}"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;number&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;track&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="nb"&gt;enumerate&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;midi&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;tracks&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;start&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;tick&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;
    &lt;span class="n"&gt;notes&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;
    &lt;span class="n"&gt;pitches&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
    &lt;span class="n"&gt;velocities&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
    &lt;span class="n"&gt;active&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;defaultdict&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;deque&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;unmatched_off&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;

    &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;message&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;track&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;tick&lt;/span&gt; &lt;span class="o"&gt;+=&lt;/span&gt; &lt;span class="n"&gt;message&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;time&lt;/span&gt;
        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;message&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="kd"&gt;type&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="s2"&gt;"note_on"&lt;/span&gt; &lt;span class="ow"&gt;and&lt;/span&gt; &lt;span class="n"&gt;message&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;velocity&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="n"&gt;key&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;getattr&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;message&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"channel"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;message&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;note&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
            &lt;span class="n"&gt;active&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;key&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;append&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;tick&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
            &lt;span class="n"&gt;pitches&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;append&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;message&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;note&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
            &lt;span class="n"&gt;velocities&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;append&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;message&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;velocity&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
            &lt;span class="n"&gt;notes&lt;/span&gt; &lt;span class="o"&gt;+=&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;
        &lt;span class="k"&gt;elif&lt;/span&gt; &lt;span class="n"&gt;message&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="kd"&gt;type&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="s2"&gt;"note_off"&lt;/span&gt; &lt;span class="ow"&gt;or&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
            &lt;span class="n"&gt;message&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="kd"&gt;type&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="s2"&gt;"note_on"&lt;/span&gt; &lt;span class="ow"&gt;and&lt;/span&gt; &lt;span class="n"&gt;message&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;velocity&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;
        &lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="n"&gt;key&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;getattr&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;message&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"channel"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;message&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;note&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
            &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;active&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;key&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
                &lt;span class="n"&gt;active&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;key&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;popleft&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
            &lt;span class="k"&gt;else&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
                &lt;span class="n"&gt;unmatched_off&lt;/span&gt; &lt;span class="o"&gt;+=&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;

    &lt;span class="n"&gt;unmatched_on&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;sum&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;len&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;starts&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;starts&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;active&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;values&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;pitch_range&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"{min(pitches)}–{max(pitches)}"&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;pitches&lt;/span&gt; &lt;span class="k"&gt;else&lt;/span&gt; &lt;span class="s2"&gt;"none"&lt;/span&gt;
    &lt;span class="n"&gt;velocity_range&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"{min(velocities)}–{max(velocities)}"&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;velocities&lt;/span&gt; &lt;span class="k"&gt;else&lt;/span&gt; &lt;span class="s2"&gt;"none"&lt;/span&gt;
    &lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
        &lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"track {number}: events={len(track)}, notes={notes}, "&lt;/span&gt;
        &lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"pitch={pitch_range}, velocity={velocity_range}, "&lt;/span&gt;
        &lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"unmatched_on={unmatched_on}, unmatched_off={unmatched_off}"&lt;/span&gt;
    &lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Run it with:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;python inspect_midi.py phrase.mid
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;mido&lt;/code&gt; exposes note numbers, not note names, in this summary. The pitch range is still a useful first signal: if you expected a single melody in a narrow register but see a very wide range, inspect the track and channels before editing. Different projects may use different octave labels for the same MIDI note number, so compare by note number or verify the editor’s convention before translating the range into a named octave.&lt;/p&gt;

&lt;h2&gt;
  
  
  Turn the summary into an editing checklist
&lt;/h2&gt;

&lt;p&gt;Open the file in a piano roll and compare the notes with the part you intended to preserve. Creatune’s public &lt;a href="https://creatune.ai/midi-editor" rel="noopener noreferrer"&gt;MIDI Editor page&lt;/a&gt; describes pitch, start time, duration and velocity as separate controls. Work through them in that order only when the phrase calls for it:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Pitch:&lt;/strong&gt; check whether the notes belong to the intended melody, chord or bass part.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Start time:&lt;/strong&gt; look for notes that begin noticeably before or after the phrase’s pulse. Keep small offsets if they are part of the groove.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Duration:&lt;/strong&gt; check overlaps and note endings; a note can start correctly but still obscure the next event if it lasts too long.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Velocity:&lt;/strong&gt; use the velocity lane for note-to-note emphasis. It is not the same as changing the rendered audio’s overall volume.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fnfvojpa7uv2067dj1w9t.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fnfvojpa7uv2067dj1w9t.png" alt="The public MIDI Editor guide separates pitch, start time, duration, and velocity" width="800" height="471"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;A file summary is a navigation aid, not a correction command. Change one category at a time and keep a copy of the original MIDI so you can compare your edits.&lt;/p&gt;

&lt;p&gt;For the next layer, read &lt;a href="https://qiita.com/creatunealex/items/82107eac04e7d12ec5da" rel="noopener noreferrer"&gt;a Japanese guide to MIDI velocity and musical dynamics&lt;/a&gt; to distinguish note velocity from track loudness, then see &lt;a href="https://qiita.com/creatunealex/items/92a2f4c9e59de9449c54" rel="noopener noreferrer"&gt;a Japanese five-step checklist for reviewing converted MIDI&lt;/a&gt; for a broader post-conversion review.&lt;/p&gt;

&lt;h2&gt;
  
  
  What to do when the counts look unusual
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;No notes in a track:&lt;/strong&gt; it may contain tempo or marker events only. Check the other tracks before treating the file as empty.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Unmatched note events:&lt;/strong&gt; inspect the affected track and channel; do not silently interpret a missing pair as a valid duration.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A broad pitch range:&lt;/strong&gt; a mixed or polyphonic part may be expected. Compare the intended source and the specific track rather than deleting notes based on range alone.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A high or low velocity range:&lt;/strong&gt; this describes MIDI note values. It does not tell you the audio’s measured loudness.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The useful outcome is a short list of questions for the piano roll. Let the file structure tell you where to look, then use musical context to decide what to keep.&lt;/p&gt;

</description>
      <category>python</category>
      <category>midi</category>
      <category>audio</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>How to Fit a Christmas Song into a 30-Second Video: Measure, Then Cut</title>
      <dc:creator>Alex Creatune</dc:creator>
      <pubDate>Wed, 11 Nov 2026 03:18:19 +0000</pubDate>
      <link>https://dev.to/creatunealex/how-to-fit-a-christmas-song-into-a-30-second-video-measure-then-cut-3n65</link>
      <guid>https://dev.to/creatunealex/how-to-fit-a-christmas-song-into-a-30-second-video-measure-then-cut-3n65</guid>
      <description>&lt;p&gt;A 30-second greeting video needs a 30-second song, and a Christmas track rarely arrives at that length. The sample songs on Creatune's public Christmas page run from 1:39 to 3:44. This guide shows how to measure a song file with Python, choose the 30 seconds you want, cut them, and confirm the result lands inside a tolerance you set.&lt;/p&gt;

&lt;p&gt;I'm Alex from the Creatune team. On November 11, 2026, I checked our public Christmas song generator and audio cutter pages, then ran every script below on a synthetic 74-second stand-in file, so you can reproduce the numbers without a song of your own. The measurements describe that stand-in file and the cutter's output.&lt;/p&gt;

&lt;h2&gt;
  
  
  What you need
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;The video length in seconds (30.0 here)&lt;/li&gt;
&lt;li&gt;A song file: a download from the generator, or any WAV or MP3 you have the rights to use&lt;/li&gt;
&lt;li&gt;Python 3 (the standard library is enough)&lt;/li&gt;
&lt;li&gt;Optional: &lt;code&gt;ffprobe&lt;/code&gt;, for formats that Python's &lt;code&gt;wave&lt;/code&gt; module cannot read&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Decide the tolerance before you start. At 30 frames per second one frame lasts 0.0333 s, so a tolerance of ±0.1 s is three frames. That is a number you can write in a delivery note and check with a script.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 1: Describe the song and download it
&lt;/h2&gt;

&lt;p&gt;Open the &lt;a href="https://creatune.ai/christmas-song-generator" rel="noopener noreferrer"&gt;Christmas song generator&lt;/a&gt;. On the Simple tab, type your idea into the prompt box, which accepts up to 500 characters. The page also offers an &lt;strong&gt;Instrumental Only&lt;/strong&gt; checkbox and style chips such as Christmas Pop, Sleigh Bells, Cozy, Acoustic, Choir, Jazz, and Kids. This prompt is a good starting point for a neighbor greeting:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;A warm Christmas greeting song for my neighbors, acoustic guitar, sleigh bells, one short chorus, female vocal
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F0gsvpeysugi01mv29okw.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F0gsvpeysugi01mv29okw.png" alt="The public Christmas song generator with the example prompt typed into the Simple tab; the Sleigh Bells style chip is highlighted" width="799" height="389"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Whatever the prompt says about length, the downloaded file is what counts. Keep the download as it is and use the steps below on it. Plan on trimming: the samples on the page last 3:44, 1:39, 2:42, and 2:53.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 2: Measure the source
&lt;/h2&gt;

&lt;p&gt;To follow along without a song, this script writes a 74-second stereo WAV. It plays a four-note pattern (C, E, G, E) at 96 BPM, so one beat lasts 0.625 s and one four-beat bar lasts 2.5 s:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;math&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;struct&lt;/span&gt;
&lt;span class="nf"&gt;import&lt;/span&gt; &lt;span class="n"&gt;wave&lt;/span&gt;

&lt;span class="no"&gt;RATE&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;44100&lt;/span&gt;
&lt;span class="no"&gt;SECONDS&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;74&lt;/span&gt;
&lt;span class="no"&gt;NOTES&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mf"&gt;261.63&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mf"&gt;329.63&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mf"&gt;392.00&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mf"&gt;329.63&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;  &lt;span class="c1"&gt;# C4 E4 G4 E4, one note per beat at 96 BPM&lt;/span&gt;
&lt;span class="no"&gt;BEAT&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;60&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="mi"&gt;96&lt;/span&gt;

&lt;span class="n"&gt;frames&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;bytearray&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;n&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="nb"&gt;range&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="no"&gt;RATE&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="no"&gt;SECONDS&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;t&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;n&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="no"&gt;RATE&lt;/span&gt;
    &lt;span class="n"&gt;freq&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="no"&gt;NOTES&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="kt"&gt;int&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;t&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="no"&gt;BEAT&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;%&lt;/span&gt; &lt;span class="nb"&gt;len&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="no"&gt;NOTES&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
    &lt;span class="n"&gt;value&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mf"&gt;0.25&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;math&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;sin&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;math&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;pi&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;freq&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;t&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;sample&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;struct&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;pack&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"&amp;lt;h"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nb"&gt;round&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;value&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="mi"&gt;32767&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;frames&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;extend&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;sample&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;  &lt;span class="c1"&gt;# same sample in left and right&lt;/span&gt;

&lt;span class="k"&gt;with&lt;/span&gt; &lt;span class="n"&gt;wave&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nb"&gt;open&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"standin-74s.wav"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"wb"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;audio&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;audio&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;setnchannels&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;audio&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;setsampwidth&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;audio&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;setframerate&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="no"&gt;RATE&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;audio&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;writeframes&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;frames&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now read the length from the file itself. For an uncompressed WAV, duration is frames divided by sample rate:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;wave&lt;/span&gt;

&lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;name&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"standin-74s.wav"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"cut-30s.wav"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="k"&gt;with&lt;/span&gt; &lt;span class="n"&gt;wave&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nb"&gt;open&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"rb"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;audio&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;rate&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;audio&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getframerate&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="n"&gt;frames&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;audio&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getnframes&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"{name}: rate={rate} channels={audio.getnchannels()} "&lt;/span&gt;
              &lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"frames={frames} seconds={frames / rate:.4f}"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Run it once now. The second file does not exist yet, so Python stops with a FileNotFoundError after printing the first line:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;standin-74s.wav: rate=44100 channels=2 frames=3263400 seconds=74.0000
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The source is 74.0 s, so 44.0 s has to go. Because this track has a steady tempo, cut on bar lines so the music starts and ends on a downbeat. Bar 5 begins at 4 × 2.5 = 10.0 s, and 30 s later is 40.0 s, which is the start of bar 17. For your own song, replace 96 BPM with its tempo: seconds per bar = 4 × 60 / BPM.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 3: Cut the section
&lt;/h2&gt;

&lt;p&gt;Open the &lt;a href="https://creatune.ai/audio-cutter" rel="noopener noreferrer"&gt;audio cutter&lt;/a&gt; and choose your file with &lt;strong&gt;Choose audio&lt;/strong&gt;. The page lists MP3, WAV, M4A, FLAC, and OGG, keeps local audio on your device, and states a limit of 50 MB per file and five minutes at the time of my check.&lt;/p&gt;

&lt;p&gt;After the file loads, the page shows its name and length (74.0 s here) plus &lt;strong&gt;Start (s)&lt;/strong&gt; and &lt;strong&gt;End (s)&lt;/strong&gt; fields. Enter 10 and 40. The label at the lower left changes to &lt;strong&gt;Total: 30.0 s&lt;/strong&gt;. Open the format menu, which offers MP3, WAV, and FLAC, choose &lt;strong&gt;WAV&lt;/strong&gt; so the file can be measured frame by frame, and select &lt;strong&gt;Download&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F317aafa2w2xd344bpv8n.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F317aafa2w2xd344bpv8n.png" alt="The public audio cutter with the 74-second stand-in file loaded, Start set to 10, End set to 40, Total 30.0 s, and WAV selected as the output format" width="800" height="527"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The browser suggested &lt;code&gt;standin-74s-audio-cutter.wav&lt;/code&gt;. Save a copy as &lt;code&gt;cut-30s.wav&lt;/code&gt; next to the source so the measuring script finds it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 4: Verify the cut
&lt;/h2&gt;

&lt;p&gt;Run the same measuring script again:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;standin-74s.wav: rate=44100 channels=2 frames=3263400 seconds=74.0000
cut-30s.wav: rate=44100 channels=2 frames=1323000 seconds=30.0000
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;File&lt;/th&gt;
&lt;th&gt;Sample rate&lt;/th&gt;
&lt;th&gt;Channels&lt;/th&gt;
&lt;th&gt;Frames&lt;/th&gt;
&lt;th&gt;Duration&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;standin-74s.wav&lt;/td&gt;
&lt;td&gt;44,100 Hz&lt;/td&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;3,263,400&lt;/td&gt;
&lt;td&gt;74.0000 s&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;cut-30s.wav&lt;/td&gt;
&lt;td&gt;44,100 Hz&lt;/td&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;1,323,000&lt;/td&gt;
&lt;td&gt;30.0000 s&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;1,323,000 frames ÷ 44,100 Hz is exactly 30 s, so the difference from the target is 0.0000 s, inside the ±0.1 s tolerance.&lt;/p&gt;

&lt;p&gt;If your download is an MP3 or another format &lt;code&gt;wave&lt;/code&gt; cannot open, ask &lt;code&gt;ffprobe&lt;/code&gt; for the duration instead:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;ffprobe -v error -show_entries &lt;span class="nv"&gt;stream&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;codec_name,sample_rate,channels:format=duration -of &lt;span class="nv"&gt;default&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="nv"&gt;nw&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;1 cut-30s.mp3
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Finish with a short acceptance record you can keep next to the project:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Video length: 30.0 s
Tolerance: ±0.1 s
Source: standin-74s.wav, 74.0000 s
Cut: 10.0 s to 40.0 s (bar 5 to bar 17 at 96 BPM)
Delivered: cut-30s.wav, 1,323,000 frames at 44,100 Hz = 30.0000 s
Result: within tolerance
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Questions that come up
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;What if the song is shorter than 30 seconds?&lt;/strong&gt; Nothing needs cutting. Decide whether the video can wait for a longer version of the track, and measure again after any change.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Should the cut end on the last frame of the video?&lt;/strong&gt; The cut fixes the length; a fade-out is a separate edit. Add the fade in your video editor so the music does not stop in the middle of a note. A fade changes loudness over time, not the file's duration.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The start sounds abrupt. Can I move it?&lt;/strong&gt; Yes. Shift both Start and End by the same amount so the total stays at 30.0 s, and run the measuring script again.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;My video is 24 fps, not 30. Does the tolerance change?&lt;/strong&gt; One frame is 0.0417 s, so ±0.1 s is about two frames. Tighten the tolerance if your delivery spec asks for it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Related reading from our team
&lt;/h2&gt;

&lt;p&gt;If a clip is still a few seconds off after cutting, changing playback speed alters its length by a predictable ratio. This earlier guide measures that on real exports: &lt;a href="https://dev.to/creatunealex/how-to-check-audio-duration-after-a-speed-change-why-08x-takes-25-longer-4dja"&gt;How to Check Audio Duration After a Speed Change&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;For planning the start point, end point, and tail of a short video's music on one sheet, see &lt;a href="https://qiita.com/creatunealex/items/4f86c82e2a9a16ee435b" rel="noopener noreferrer"&gt;the cut-planning sheet for short-video BGM&lt;/a&gt; (in Japanese).&lt;/p&gt;

</description>
      <category>python</category>
      <category>audio</category>
      <category>tutorial</category>
      <category>video</category>
    </item>
    <item>
      <title>What Does 24-bit PCM Mean? Check Sample Width After a WAV Export</title>
      <dc:creator>Alex Creatune</dc:creator>
      <pubDate>Sun, 08 Nov 2026 14:00:57 +0000</pubDate>
      <link>https://dev.to/creatunealex/what-does-24-bit-pcm-mean-check-sample-width-after-a-wav-export-4pl7</link>
      <guid>https://dev.to/creatunealex/what-does-24-bit-pcm-mean-check-sample-width-after-a-wav-export-4pl7</guid>
      <description>&lt;p&gt;A WAV delivery request can specify 24-bit PCM. To check that requirement, read the sample width of the delivered file. The filename and the waveform display provide other information, while sample width answers how many bytes store each sample.&lt;/p&gt;

&lt;p&gt;I'm Alex from the Creatune team. On November 8, 2026, I created a one-second 24-bit PCM fixture, converted it through our public English audio converter, and inspected the downloaded WAV. The measurements below cover file metadata. I did not perform a listening comparison.&lt;/p&gt;

&lt;h2&gt;
  
  
  Put bit depth, sample rate, and channels in separate fields
&lt;/h2&gt;

&lt;p&gt;For ordinary integer PCM, bit depth describes the number of bits used for each channel's sample. A 24-bit sample occupies three bytes. A 16-bit sample occupies two. Their representable integer grids contain 2^24 and 2^16 values respectively.&lt;/p&gt;

&lt;p&gt;Sample rate describes the number of frames per second. Channel count describes how many samples occur in each frame. For an uncompressed PCM payload, the basic relationship is&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;payload_bytes = frames * channels * bytes_per_sample
seconds = frames / sample_rate
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A WAV file also contains a header and may contain additional chunks, so its total byte size can exceed the audio payload. Treat the delivered file's encoding, sample rate, channel count, and duration as separate acceptance fields.&lt;/p&gt;

&lt;h2&gt;
  
  
  Create a source with known properties
&lt;/h2&gt;

&lt;p&gt;This Python script writes a mono, 48 kHz, 24-bit integer PCM WAV. It uses a short synthetic tone so the example can be reproduced without recording or licensing an external track.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;math&lt;/span&gt;
&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;wave&lt;/span&gt;

&lt;span class="n"&gt;rate&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;48000&lt;/span&gt;
&lt;span class="n"&gt;samples&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;bytearray&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;frame&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="nf"&gt;range&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;rate&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="n"&gt;value&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;round&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mf"&gt;0.2&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="mi"&gt;8388607&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;math&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;sin&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;math&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;pi&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="mi"&gt;440&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;frame&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="n"&gt;rate&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;
    &lt;span class="n"&gt;samples&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;extend&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;value&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;to_bytes&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;little&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;signed&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="bp"&gt;True&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;

&lt;span class="k"&gt;with&lt;/span&gt; &lt;span class="n"&gt;wave&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;open&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;mono24-48000-1s.wav&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;wb&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;audio&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;audio&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;setnchannels&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;audio&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;setsampwidth&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;audio&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;setframerate&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;rate&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;audio&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;writeframes&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;samples&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The positive full-scale integer for signed 24-bit PCM is 8,388,607. The 0.2 multiplier keeps this fixture's amplitude comfortably inside its numeric range.&lt;/p&gt;

&lt;h2&gt;
  
  
  Convert the fixture and retain both files
&lt;/h2&gt;

&lt;p&gt;Open the English Creatune audio converter and choose the fixture with &lt;strong&gt;Choose audio&lt;/strong&gt;. The page displayed the filename and a rounded duration of 1.0 s. In this session, the initial output selection was MP3. &lt;a href="https://creatune.ai/audio-converter" rel="noopener noreferrer"&gt;Audio converter&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fwtz5z7s6j8nx1wjdjeag.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fwtz5z7s6j8nx1wjdjeag.png" alt="The public audio converter displays the owned one-second fixture before choosing the export format" width="800" height="491"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Open &lt;strong&gt;Output format&lt;/strong&gt;, select &lt;strong&gt;WAV&lt;/strong&gt;, and choose &lt;strong&gt;Download&lt;/strong&gt;. Keep the source file and save a separate copy of the download as &lt;code&gt;converted.wav&lt;/code&gt;. The browser suggested &lt;code&gt;mono24-48000-1s-audio-converter.wav&lt;/code&gt; during this test.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fegf6puwk8btegs1olzxn.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fegf6puwk8btegs1olzxn.png" alt="WAV selected in the public converter before downloading the measured output" width="800" height="491"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The visible controls in this workflow select the output format. They do not expose a separate bit-depth selector. The export therefore needs a file-level check against any 24-bit delivery requirement.&lt;/p&gt;

&lt;h2&gt;
  
  
  Read the downloaded metadata
&lt;/h2&gt;

&lt;p&gt;Run this script in the directory containing the two files&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;wave&lt;/span&gt;

&lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;name&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;mono24-48000-1s.wav&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;converted.wav&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="k"&gt;with&lt;/span&gt; &lt;span class="n"&gt;wave&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;open&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;rb&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;audio&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;width&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;audio&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getsampwidth&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
        &lt;span class="n"&gt;rate&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;audio&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getframerate&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
        &lt;span class="n"&gt;frames&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;audio&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getnframes&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
        &lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
            &lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
            &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;width_bytes=&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;width&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
            &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;bits=&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;width&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="mi"&gt;8&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
            &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;rate=&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;rate&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
            &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;channels=&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;audio&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getnchannels&lt;/span&gt;&lt;span class="p"&gt;(),&lt;/span&gt;
            &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;frames=&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;frames&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
            &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;seconds=&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;frames&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="n"&gt;rate&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Python's &lt;code&gt;wave&lt;/code&gt; reader supports the uncompressed PCM files used here. A float or compressed WAV may need a reader that supports its encoding. If the reader rejects the file, inspect that encoding before treating its width as an integer-PCM bit depth.&lt;/p&gt;

&lt;p&gt;These are the values measured in this run&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Field&lt;/th&gt;
&lt;th&gt;Source&lt;/th&gt;
&lt;th&gt;Downloaded WAV&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Bytes per sample&lt;/td&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Integer PCM bit depth&lt;/td&gt;
&lt;td&gt;24&lt;/td&gt;
&lt;td&gt;16&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Sample rate&lt;/td&gt;
&lt;td&gt;48,000 Hz&lt;/td&gt;
&lt;td&gt;44,100 Hz&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Channels&lt;/td&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Frames&lt;/td&gt;
&lt;td&gt;48,000&lt;/td&gt;
&lt;td&gt;44,099&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Duration&lt;/td&gt;
&lt;td&gt;1.0 s&lt;/td&gt;
&lt;td&gt;0.9999773242630385 s&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The downloaded file used 16-bit PCM, so it did not meet a requirement to retain 24-bit PCM. Its sample rate and channel count also changed. At 44.1 kHz, 44,100 frames would make exactly one second. This output had one fewer frame, about 22.7 microseconds shorter, while the tool's rounded display still showed 1.0 s.&lt;/p&gt;

&lt;p&gt;Those observations apply to this fixture and this export. The measurements establish the stored format and duration. They leave listening quality, effective recording resolution, and the treatment of other inputs for separate checks.&lt;/p&gt;

&lt;h2&gt;
  
  
  Turn the requirement into a reproducible decision
&lt;/h2&gt;

&lt;p&gt;Write an acceptance record before delivering the converted file&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Required encoding: integer PCM
Required sample width: 3 bytes / 24 bits
Required sample rate: 48000 Hz
Required channels: 1
Duration tolerance: define it with the recipient
Observed output: 2 bytes / 16 bits, 44100 Hz, 2 channels
Decision for this requirement: choose an export workflow with the required controls
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Increasing the sample width of an already quantized file can provide a larger storage representation, while the earlier quantization has already limited the stored values. Keep the original recording when later processing or delivery depends on that precision.&lt;/p&gt;

&lt;p&gt;Our earlier WAV handoff checklist helps turn these fields into an explicit agreement with the next tool or collaborator. &lt;a href="https://dev.to/creatunealex/a-wav-filename-is-not-an-audio-delivery-contract-3nhp"&gt;WAV delivery requirements&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;For a separate amplitude check after processing, our reproducible gain test shows how to measure sample peaks and record their units. &lt;a href="https://dev.to/creatunealex/verify-a-gain-change-with-sample-peaks-before-judging-loudness-259g"&gt;Measuring a gain change with sample peaks&lt;/a&gt;&lt;/p&gt;

</description>
      <category>audio</category>
    </item>
    <item>
      <title>How to Check Audio Duration After a Speed Change: Why 0.8 Takes 25% Longer</title>
      <dc:creator>Alex Creatune</dc:creator>
      <pubDate>Fri, 06 Nov 2026 03:57:52 +0000</pubDate>
      <link>https://dev.to/creatunealex/how-to-check-audio-duration-after-a-speed-change-why-08x-takes-25-longer-4dja</link>
      <guid>https://dev.to/creatunealex/how-to-check-audio-duration-after-a-speed-change-why-08x-takes-25-longer-4dja</guid>
      <description>&lt;p&gt;A practice track is eight seconds long. You set its speed to 0.8×. Should the result last 9.6 seconds or 10 seconds?&lt;/p&gt;

&lt;p&gt;It should last 10 seconds. The speed is 20% lower, but the duration is 25% longer. If you are fitting a rehearsal clip into a fixed slot, confusing those percentages gives you the wrong endpoint before you even export.&lt;/p&gt;

&lt;p&gt;I’m Alex from the Creatune team. I tested the duration calculation below with a synthetic WAV in our public speed changer on November 4, 2026. The measurements cover exported file duration and format metadata; they do not establish listening quality or pitch preservation.&lt;/p&gt;

&lt;h2&gt;
  
  
  Start with the inverse relationship
&lt;/h2&gt;

&lt;p&gt;For a constant speed multiplier &lt;code&gt;s&lt;/code&gt;, with no trimming or added padding:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;output_duration = input_duration / s
speed_multiplier = input_duration / target_duration
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A multiplier describes how quickly you move through the original timeline. At 0.8×, one second of source material needs &lt;code&gt;1 / 0.8 = 1.25&lt;/code&gt; seconds to play.&lt;/p&gt;

&lt;p&gt;For an eight-second source:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Speed&lt;/th&gt;
&lt;th&gt;Calculation&lt;/th&gt;
&lt;th&gt;Expected duration&lt;/th&gt;
&lt;th&gt;Change from the source&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;0.8×&lt;/td&gt;
&lt;td&gt;8 / 0.8&lt;/td&gt;
&lt;td&gt;10 seconds&lt;/td&gt;
&lt;td&gt;25% longer&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;1×&lt;/td&gt;
&lt;td&gt;8 / 1&lt;/td&gt;
&lt;td&gt;8 seconds&lt;/td&gt;
&lt;td&gt;Unchanged&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;1.25×&lt;/td&gt;
&lt;td&gt;8 / 1.25&lt;/td&gt;
&lt;td&gt;6.4 seconds&lt;/td&gt;
&lt;td&gt;20% shorter&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The percentage change in duration is &lt;code&gt;(1 / s - 1) * 100&lt;/code&gt;, not &lt;code&gt;(1 - s) * 100&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;This also works backwards. To stretch eight seconds to ten seconds, request &lt;code&gt;8 / 10 = 0.8×&lt;/code&gt;. If the interface cannot represent your exact multiplier, treat the chosen value as an approximation and measure the export.&lt;/p&gt;

&lt;h2&gt;
  
  
  Make a source whose duration you know
&lt;/h2&gt;

&lt;p&gt;Use a short WAV you own, or generate the same eight-second fixture with Python’s standard library. No microphone or third-party audio is needed.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;math&lt;/span&gt;
&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;struct&lt;/span&gt;
&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;wave&lt;/span&gt;

&lt;span class="n"&gt;rate&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;44100&lt;/span&gt;
&lt;span class="n"&gt;frames&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;rate&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="mi"&gt;8&lt;/span&gt;
&lt;span class="n"&gt;samples&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
    &lt;span class="nf"&gt;round&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mf"&gt;0.2&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="mi"&gt;32767&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;math&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;sin&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;math&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;pi&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="mi"&gt;440&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;n&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="n"&gt;rate&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;
    &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;n&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="nf"&gt;range&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;frames&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="p"&gt;]&lt;/span&gt;

&lt;span class="k"&gt;with&lt;/span&gt; &lt;span class="n"&gt;wave&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;open&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;tone440-8seconds.wav&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;wb&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;out&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;out&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;setnchannels&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;out&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;setsampwidth&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;out&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;setframerate&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;rate&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;out&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;writeframes&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;struct&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;pack&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;&amp;lt;&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;h&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;frames&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="n"&gt;samples&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This creates 352,800 frames of mono, 16-bit PCM at 44,100 Hz. The 440 Hz tone supplies a simple signal for the file; counting its frames supplies the exact input duration. A steady tone does not test how a music processor handles drum attacks, voices, or complex mixes.&lt;/p&gt;

&lt;h2&gt;
  
  
  Export two settings from the same original
&lt;/h2&gt;

&lt;p&gt;Open the English &lt;a href="https://creatune.ai/audio-speed-changer" rel="noopener noreferrer"&gt;Creatune music speed changer&lt;/a&gt;. In the public interface I checked, the Speed control runs from 0.5× to 2× in steps of 0.05, and the output choices are MP3, WAV, and FLAC.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Choose &lt;code&gt;tone440-8seconds.wav&lt;/code&gt; as the input.&lt;/li&gt;
&lt;li&gt;Set &lt;strong&gt;Speed&lt;/strong&gt; to &lt;strong&gt;0.8×&lt;/strong&gt;. Confirm that the input still reads &lt;strong&gt;8.0 s&lt;/strong&gt; and &lt;strong&gt;Total&lt;/strong&gt; reads &lt;strong&gt;10.0 s&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Set the output format to &lt;strong&gt;WAV&lt;/strong&gt;, then select &lt;strong&gt;Download&lt;/strong&gt;. Save or rename this export as &lt;code&gt;speed-080.wav&lt;/code&gt;.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fg1fqcl9fomcrm11u3u3o.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fg1fqcl9fomcrm11u3u3o.png" alt="The public speed changer showing the original eight-second WAV, Speed 0.8×, Total 10.0 s, and WAV output" width="800" height="491"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Keep the original file loaded. Change &lt;strong&gt;Speed&lt;/strong&gt; to &lt;strong&gt;1.25×&lt;/strong&gt;. The displayed Total becomes &lt;strong&gt;6.4 s&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Download another WAV and save it as &lt;code&gt;speed-125.wav&lt;/code&gt;.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ftii3l36cj4aj64idoqb6.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ftii3l36cj4aj64idoqb6.png" alt="The same original file at Speed 1.25× with Total 6.4 s and WAV output" width="800" height="491"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Use separate filenames so that the second download does not replace the first. Do not load &lt;code&gt;speed-080.wav&lt;/code&gt; as the second input: that would test a second processing pass on the ten-second export, rather than a different setting on the original eight seconds.&lt;/p&gt;

&lt;p&gt;The page currently states a 50 MB file limit and up to five minutes on desktop, or 2.5 minutes on small screens. This fixture is comfortably inside those limits.&lt;/p&gt;

&lt;h2&gt;
  
  
  Count frames in the downloaded files
&lt;/h2&gt;

&lt;p&gt;A rounded Total label is useful for setting up the operation. The exported file is the thing to measure before placing it on a timeline.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;wave&lt;/span&gt;

&lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;name&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;tone440-8seconds.wav&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;speed-080.wav&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;speed-125.wav&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="k"&gt;with&lt;/span&gt; &lt;span class="n"&gt;wave&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;open&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;rb&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;audio&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;frames&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;audio&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getnframes&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
        &lt;span class="n"&gt;rate&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;audio&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getframerate&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
        &lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
            &lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
            &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;frames=&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;frames&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
            &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;rate=&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;rate&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
            &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;channels=&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;audio&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getnchannels&lt;/span&gt;&lt;span class="p"&gt;(),&lt;/span&gt;
            &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;bytes_per_sample=&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;audio&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getsampwidth&lt;/span&gt;&lt;span class="p"&gt;(),&lt;/span&gt;
            &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;seconds=&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;frames&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="n"&gt;rate&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Here are the actual file measurements from this test:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;File&lt;/th&gt;
&lt;th&gt;Frames&lt;/th&gt;
&lt;th&gt;Sample rate&lt;/th&gt;
&lt;th&gt;Channels&lt;/th&gt;
&lt;th&gt;Bytes per sample&lt;/th&gt;
&lt;th&gt;Duration&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Original&lt;/td&gt;
&lt;td&gt;352,800&lt;/td&gt;
&lt;td&gt;44,100 Hz&lt;/td&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;8.0 s&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;0.8× export&lt;/td&gt;
&lt;td&gt;441,000&lt;/td&gt;
&lt;td&gt;44,100 Hz&lt;/td&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;10.0 s&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;1.25× export&lt;/td&gt;
&lt;td&gt;282,240&lt;/td&gt;
&lt;td&gt;44,100 Hz&lt;/td&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;6.4 s&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Both measured durations match the inverse-speed calculation exactly for this fixture. The exports also have two channels, while the source has one. That is why raw file size is a poor shortcut for checking duration here: channel count changed too.&lt;/p&gt;

&lt;p&gt;A frame contains one sample for each channel at one instant. Divide &lt;strong&gt;frames by sample rate&lt;/strong&gt; to get seconds. Do not divide that result by the number of channels.&lt;/p&gt;

&lt;h2&gt;
  
  
  Diagnose a mismatch without guessing
&lt;/h2&gt;

&lt;p&gt;If a downloaded clip is not the length you expected, check these in order:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Input identity:&lt;/strong&gt; was the original file still loaded, or did you accidentally process a previous export?&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Multiplier:&lt;/strong&gt; did you enter a speed factor such as 0.8, or a percentage such as 20?&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;File identity:&lt;/strong&gt; are you inspecting the newest export with the intended setting?&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Measurement:&lt;/strong&gt; use decoded frames and sample rate, rather than file bytes or a rounded player label. The Python example above is for PCM WAV; an MP3 needs an appropriate decoder.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Extra operations:&lt;/strong&gt; trimming, padding, or a second processing pass changes the calculation. Record those separately before attributing a mismatch to speed.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Matching duration is only one acceptance check. For a rehearsal track, also listen to the beginning, transitions, and ending at a comfortable volume, and judge whether the instruments and words remain useful for your purpose. I did not perform that listening comparison in this test.&lt;/p&gt;

&lt;h2&gt;
  
  
  Related checks
&lt;/h2&gt;

&lt;p&gt;If your next question is whether the pace itself matches the intended beat, our earlier &lt;a href="https://dev.to/creatunealex/what-is-bpm-check-a-tempo-estimate-with-a-reproducible-click-track-9pj"&gt;reproducible click-track tempo check&lt;/a&gt; explains how to establish a known BPM reference.&lt;/p&gt;

&lt;p&gt;If your workflow joins files with different sample rates, &lt;a href="https://dev.to/creatunealex/how-to-check-duration-when-joining-441-khz-and-48-khz-audio-26dn"&gt;checking duration when joining 44.1 kHz and 48 kHz audio&lt;/a&gt; shows why you must read each file’s sample rate before converting frame counts to seconds.&lt;/p&gt;

</description>
      <category>audio</category>
    </item>
  </channel>
</rss>
