<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[ChipMusic.org - pcm2pwm -> 1-bit audio tool! (linux/mac/windows)]]></title>
	<link rel="self" href="https://chipmusic.org:80/forums/feed/atom/topic/11827/"/>
	<updated>2020-03-01T21:10:36Z</updated>
	<generator>PunBB</generator>
	<id>https://chipmusic.org/forums/topic/11827/pcm2pwm-1bit-audio-tool-linuxmacwindows/</id>
		<entry>
			<title type="html"><![CDATA[Re: pcm2pwm -> 1-bit audio tool! (linux/mac/windows)]]></title>
			<link rel="alternate" href="https://chipmusic.org/forums/post/263280/#p263280"/>
			<content type="html"><![CDATA[<p>pcm2pwm v1.0 is finally here!</p><p>The most important changes are binary output mode and the move to POSIX-style options/arguments that&#039;ll make it more versatile and easier to use. Also included is a DASM-style output that appends a \t to each .byte directive.</p><p>Grab it now!<br /><a href="https://github.com/JeffAlyanak/pcm2pwm/tree/v1.0" target="_blank">https://github.com/JeffAlyanak/pcm2pwm/tree/v1.0</a></p>]]></content>
			<author>
				<name><![CDATA[jefftheworld]]></name>
				<uri>https://chipmusic.org/jefftheworld</uri>
			</author>
			<updated>2020-03-01T21:10:36Z</updated>
			<id>https://chipmusic.org/forums/post/263280/#p263280</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: pcm2pwm -> 1-bit audio tool! (linux/mac/windows)]]></title>
			<link rel="alternate" href="https://chipmusic.org/forums/post/262671/#p262671"/>
			<content type="html"><![CDATA[<p>Seems reasonable to me. A PWM file will be at most 1/8th the size of a corresponding 8-bit WAV file, and usually much less.</p>]]></content>
			<author>
				<name><![CDATA[irrlichtproject]]></name>
				<uri>https://chipmusic.org/irrlichtproject</uri>
			</author>
			<updated>2019-11-17T16:55:56Z</updated>
			<id>https://chipmusic.org/forums/post/262671/#p262671</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: pcm2pwm -> 1-bit audio tool! (linux/mac/windows)]]></title>
			<link rel="alternate" href="https://chipmusic.org/forums/post/262670/#p262670"/>
			<content type="html"><![CDATA[<p>I have downloaded v0.8.1 and I&#039;m using Windows 10 Pro v1903</p><p>Though I&#039;m using an audio track ripped from a CD, it&#039;s basically a sound bite from Pulp Fiction which you can see the exact ~14-second clip on this YouTube video starting at 1:49, <a href="https://youtu.be/PvMxbRCBalk?t=109" target="_blank">https://youtu.be/PvMxbRCBalk?t=109</a></p><p>I took the audio into Adobe Audition and compressed it so all the peaks are nearly clipped. I then saved the file as a mono 96kHz 8bit WAV. I ran it through your tool and I got a file with 768 8-bit values. I haven&#039;t written the code yet to play back the file, so before I try to make it work I wanted to ask if this sounded correct. I was expecting many times that number. I tried it again but using Audacity, and saved it as a mono 44.1kHz 8-bit unsigned WAV. Your tool produced a file now with only 681 bytes.</p>]]></content>
			<author>
				<name><![CDATA[James Burkart]]></name>
				<uri>https://chipmusic.org/James+Burkart</uri>
			</author>
			<updated>2019-11-16T10:40:59Z</updated>
			<id>https://chipmusic.org/forums/post/262670/#p262670</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: pcm2pwm -> 1-bit audio tool! (linux/mac/windows)]]></title>
			<link rel="alternate" href="https://chipmusic.org/forums/post/262095/#p262095"/>
			<content type="html"><![CDATA[<p>pcm2pwm v0.8.1 fixes a bug that was affecting the quality of the output.</p><p>Grab it now and see for yourself how much better the results are!</p><p><a href="https://github.com/JeffAlyanak/pcm2pwm/tree/v0.8.1" target="_blank">https://github.com/JeffAlyanak/pcm2pwm/tree/v0.8.1</a></p>]]></content>
			<author>
				<name><![CDATA[jefftheworld]]></name>
				<uri>https://chipmusic.org/jefftheworld</uri>
			</author>
			<updated>2019-06-06T15:39:00Z</updated>
			<id>https://chipmusic.org/forums/post/262095/#p262095</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: pcm2pwm -> 1-bit audio tool! (linux/mac/windows)]]></title>
			<link rel="alternate" href="https://chipmusic.org/forums/post/262036/#p262036"/>
			<content type="html"><![CDATA[<p>Version 0.8 is out! A few years ago I added support for outputting in Houston Tracker 2&#039;s inverted format for my own use but I never got around to releasing that feature.</p><p>Well, that&#039;s the only new feature in pcm2pwm v0.8! Enjoy!</p><p><a href="https://github.com/JeffAlyanak/pcm2pwm/tree/v0.8" target="_blank">https://github.com/JeffAlyanak/pcm2pwm/tree/v0.8</a></p>]]></content>
			<author>
				<name><![CDATA[jefftheworld]]></name>
				<uri>https://chipmusic.org/jefftheworld</uri>
			</author>
			<updated>2019-05-17T22:48:55Z</updated>
			<id>https://chipmusic.org/forums/post/262036/#p262036</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: pcm2pwm -> 1-bit audio tool! (linux/mac/windows)]]></title>
			<link rel="alternate" href="https://chipmusic.org/forums/post/237553/#p237553"/>
			<content type="html"><![CDATA[<p>I&#039;ve only tried one file, but since I can only get 8bit files from audacity, I thought I used some wrong options.</p><p>Here is the file: <a href="http://dl.free.fr/nYTPVW2el" target="_blank">http://dl.free.fr/nYTPVW2el</a></p><p>I&#039;ve compiled the latest code from github and I&#039;m using linux (mint)</p>]]></content>
			<author>
				<name><![CDATA[garvalf]]></name>
				<uri>https://chipmusic.org/garvalf</uri>
			</author>
			<updated>2015-12-14T20:26:20Z</updated>
			<id>https://chipmusic.org/forums/post/237553/#p237553</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: pcm2pwm -> 1-bit audio tool! (linux/mac/windows)]]></title>
			<link rel="alternate" href="https://chipmusic.org/forums/post/237332/#p237332"/>
			<content type="html"><![CDATA[<div class="quotebox"><cite>garvalf wrote:</cite><blockquote><p>I&#039;m trying this, but it acts rather strangely:</p><p>./pcm2pwm piano8bit.wav </p><p>all I get is:<br />.byte $00,$FF,$FF</p><p>My file should be legit I guess:<br />piano8bit.wav: RIFF (little-endian) data, WAVE audio, Microsoft PCM, 8 bit, mono 44100 Hz</p><p>it&#039;s 45 kb big</p><p>(I exported as 8bit unsigned in audacity)</p></blockquote></div><p>Is it only that file that is having trouble? What version of the tool are you running and on what OS? If it&#039;s just the one file can you email me the file in question?</p>]]></content>
			<author>
				<name><![CDATA[jefftheworld]]></name>
				<uri>https://chipmusic.org/jefftheworld</uri>
			</author>
			<updated>2015-12-09T22:43:39Z</updated>
			<id>https://chipmusic.org/forums/post/237332/#p237332</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: pcm2pwm -> 1-bit audio tool! (linux/mac/windows)]]></title>
			<link rel="alternate" href="https://chipmusic.org/forums/post/237327/#p237327"/>
			<content type="html"><![CDATA[<p>I&#039;m trying this, but it acts rather strangely:</p><p>./pcm2pwm piano8bit.wav </p><p>all I get is:<br />.byte $00,$FF,$FF</p><p>My file should be legit I guess:<br />piano8bit.wav: RIFF (little-endian) data, WAVE audio, Microsoft PCM, 8 bit, mono 44100 Hz</p><p>it&#039;s 45 kb big</p><p>(I exported as 8bit unsigned in audacity)</p>]]></content>
			<author>
				<name><![CDATA[garvalf]]></name>
				<uri>https://chipmusic.org/garvalf</uri>
			</author>
			<updated>2015-12-09T20:22:23Z</updated>
			<id>https://chipmusic.org/forums/post/237327/#p237327</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: pcm2pwm -> 1-bit audio tool! (linux/mac/windows)]]></title>
			<link rel="alternate" href="https://chipmusic.org/forums/post/237021/#p237021"/>
			<content type="html"><![CDATA[<p>Bump.</p><p><a href="https://github.com/JeffAlyanak/pcm2pwm" target="_blank">https://github.com/JeffAlyanak/pcm2pwm</a></p><p>Just made a few small changes to the pcm2pwm tool and I&#039;ve also thrown the source up for anyone who wants to muck about with it. The only really visible change is the ability to set your own high and low crossover values, making it unnecessary to amplify your input wav file to near clipping. That said, you&#039;ll still want to sound to be relatively heavily compressed and setting these crossovers might be a hit or miss process in terms of getting a decent representation of the original sound&#039;s timbre.</p>]]></content>
			<author>
				<name><![CDATA[jefftheworld]]></name>
				<uri>https://chipmusic.org/jefftheworld</uri>
			</author>
			<updated>2015-12-02T20:57:20Z</updated>
			<id>https://chipmusic.org/forums/post/237021/#p237021</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: pcm2pwm -> 1-bit audio tool! (linux/mac/windows)]]></title>
			<link rel="alternate" href="https://chipmusic.org/forums/post/227468/#p227468"/>
			<content type="html"><![CDATA[<div class="quotebox"><cite>irrlichtproject wrote:</cite><blockquote><p>simple ZX Spectrum replayer: <a href="http://irrlichtproject.de/downloads/pwm2zx.tar.gz" target="_blank">http://irrlichtproject.de/downloads/pwm2zx.tar.gz</a><br />feel free to add it to your package. btw what does the long word at the beginning of the sample data mean?</p></blockquote></div><p>That had to do with jitter compensation in the demo that this was to be used in. It&#039;s pretty much useless for anyone else although it won&#039;t really do any harm if &quot;played back&quot; unless timing is very, very critical (it&#039;ll just be a delay of 255 x routine speed).</p>]]></content>
			<author>
				<name><![CDATA[jefftheworld]]></name>
				<uri>https://chipmusic.org/jefftheworld</uri>
			</author>
			<updated>2015-03-20T01:46:09Z</updated>
			<id>https://chipmusic.org/forums/post/227468/#p227468</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: pcm2pwm -> 1-bit audio tool! (linux/mac/windows)]]></title>
			<link rel="alternate" href="https://chipmusic.org/forums/post/179483/#p179483"/>
			<content type="html"><![CDATA[<p>simple ZX Spectrum replayer: <a href="http://irrlichtproject.de/downloads/pwm2zx.tar.gz" target="_blank">http://irrlichtproject.de/downloads/pwm2zx.tar.gz</a><br />feel free to add it to your package. btw what does the long word at the beginning of the sample data mean?</p>]]></content>
			<author>
				<name><![CDATA[irrlichtproject]]></name>
				<uri>https://chipmusic.org/irrlichtproject</uri>
			</author>
			<updated>2013-08-04T13:34:56Z</updated>
			<id>https://chipmusic.org/forums/post/179483/#p179483</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: pcm2pwm -> 1-bit audio tool! (linux/mac/windows)]]></title>
			<link rel="alternate" href="https://chipmusic.org/forums/post/179369/#p179369"/>
			<content type="html"><![CDATA[<p>I&#039;m a a Linux developer so if I do any updates the Linux tool will probably always been the best tested.</p>]]></content>
			<author>
				<name><![CDATA[jefftheworld]]></name>
				<uri>https://chipmusic.org/jefftheworld</uri>
			</author>
			<updated>2013-08-03T16:26:19Z</updated>
			<id>https://chipmusic.org/forums/post/179369/#p179369</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: pcm2pwm -> 1-bit audio tool! (linux/mac/windows)]]></title>
			<link rel="alternate" href="https://chipmusic.org/forums/post/179363/#p179363"/>
			<content type="html"><![CDATA[<p>nice, this will come in handy sometimes <img src="https://chipmusic.org/forums/img/smilies/wink.png" width="15" height="15" alt="wink" /> also thumbs up for linux version!</p>]]></content>
			<author>
				<name><![CDATA[irrlichtproject]]></name>
				<uri>https://chipmusic.org/irrlichtproject</uri>
			</author>
			<updated>2013-08-03T16:03:16Z</updated>
			<id>https://chipmusic.org/forums/post/179363/#p179363</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: pcm2pwm -> 1-bit audio tool! (linux/mac/windows)]]></title>
			<link rel="alternate" href="https://chipmusic.org/forums/post/179315/#p179315"/>
			<content type="html"><![CDATA[<p>cool tool - im sure some people will find it handy</p>]]></content>
			<author>
				<name><![CDATA[sandneil]]></name>
				<uri>https://chipmusic.org/sandneil</uri>
			</author>
			<updated>2013-08-03T00:32:47Z</updated>
			<id>https://chipmusic.org/forums/post/179315/#p179315</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: pcm2pwm -> 1-bit audio tool! (linux/mac/windows)]]></title>
			<link rel="alternate" href="https://chipmusic.org/forums/post/179314/#p179314"/>
			<content type="html"><![CDATA[<p>just in case you want to go the other way </p><div class="spoilerbox" id="spoiler6095753"><h3 onclick="$('#spoilerbox6095753').css('display','block');$('#spoiler6095753').css('display','none')">&#8250; Show Spoiler</h3></div><div class="spoilerbox" id="spoilerbox6095753" style="display:none"><h3 onclick="$('#spoilerbox6095753').css('display','none');$('#spoiler6095753').css('display','block')">&#8249; Hide Spoiler</h3><div class="codebox"><pre><code>#!/usr/bin/perl

use warnings; use strict;

my $instr = &quot;&quot;;
$instr = $instr . $_ while (&lt;&gt;);

my $state = 0;
foreach my $byte ($instr =~ /\$(..)/g) {
    for (my $i = 0; $i &lt; hex(&quot;0x&quot; . $byte); $i++) {
        print pack(&quot;C&quot;, $state * 255);
    }
    $state = 1 - $state;
}</code></pre></div></div><p>(i just wanted to see what the results would sound like &amp; im lazy)</p>]]></content>
			<author>
				<name><![CDATA[sandneil]]></name>
				<uri>https://chipmusic.org/sandneil</uri>
			</author>
			<updated>2013-08-03T00:32:15Z</updated>
			<id>https://chipmusic.org/forums/post/179314/#p179314</id>
		</entry>
</feed>
