<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://pzwiki.wdka.nl/mw-mediadesign/index.php?action=history&amp;feed=atom&amp;title=User%3AThijshijsijsjss%2FPen_Plotting_Panache%2FVolume_Plotting</id>
	<title>User:Thijshijsijsjss/Pen Plotting Panache/Volume Plotting - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://pzwiki.wdka.nl/mw-mediadesign/index.php?action=history&amp;feed=atom&amp;title=User%3AThijshijsijsjss%2FPen_Plotting_Panache%2FVolume_Plotting"/>
	<link rel="alternate" type="text/html" href="https://pzwiki.wdka.nl/mw-mediadesign/index.php?title=User:Thijshijsijsjss/Pen_Plotting_Panache/Volume_Plotting&amp;action=history"/>
	<updated>2026-08-04T16:56:11Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.38.2</generator>
	<entry>
		<id>https://pzwiki.wdka.nl/mw-mediadesign/index.php?title=User:Thijshijsijsjss/Pen_Plotting_Panache/Volume_Plotting&amp;diff=265092&amp;oldid=prev</id>
		<title>Thijshijsijsjss: Add link to volume plotting site</title>
		<link rel="alternate" type="text/html" href="https://pzwiki.wdka.nl/mw-mediadesign/index.php?title=User:Thijshijsijsjss/Pen_Plotting_Panache/Volume_Plotting&amp;diff=265092&amp;oldid=prev"/>
		<updated>2024-05-02T16:21:45Z</updated>

		<summary type="html">&lt;p&gt;Add link to volume plotting site&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 18:21, 2 May 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l5&quot;&gt;Line 5:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 5:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[File:Volume-plotting-screenshot.png|600px|left|Screenshot of volume plotting web interface]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[File:Volume-plotting-screenshot.png|600px|left|Screenshot of volume plotting web interface]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;At the moment, volume &lt;/del&gt;plotting is &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;not hosted online&lt;/del&gt;. &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;You can &lt;/del&gt;get your own &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;copy of &lt;/del&gt;the code &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;here&lt;/del&gt;:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Volume &lt;/ins&gt;plotting is &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;part of the [[SI23]] [https://issue.xpub.nl/23/ webquilt]! Find it [https://hub.xpub&lt;/ins&gt;.&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;nl/chopchop/~thijsoid/quilt/volumeplotting.html here], or &lt;/ins&gt;get your own &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;with &lt;/ins&gt;the code &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;below&lt;/ins&gt;:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;syntaxhighlight lang=html&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;syntaxhighlight lang=html&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Thijshijsijsjss</name></author>
	</entry>
	<entry>
		<id>https://pzwiki.wdka.nl/mw-mediadesign/index.php?title=User:Thijshijsijsjss/Pen_Plotting_Panache/Volume_Plotting&amp;diff=256835&amp;oldid=prev</id>
		<title>Thijshijsijsjss: Add example photo</title>
		<link rel="alternate" type="text/html" href="https://pzwiki.wdka.nl/mw-mediadesign/index.php?title=User:Thijshijsijsjss/Pen_Plotting_Panache/Volume_Plotting&amp;diff=256835&amp;oldid=prev"/>
		<updated>2023-12-30T22:12:17Z</updated>

		<summary type="html">&lt;p&gt;Add example photo&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 00:12, 31 December 2023&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[File:Zinecamp volume plot.jpg|thumb|right|Example of volume plot]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;A modification of the code written at Zinecamp 2023 that captures audio and makes HPGL code for a volume plot. This version is more user friendly, with buttons for starting, restarting and copying, and with input length and title. Like this:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;A modification of the code written at Zinecamp 2023 that captures audio and makes HPGL code for a volume plot. This version is more user friendly, with buttons for starting, restarting and copying, and with input length and title. Like this:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[File:Volume-plotting-screenshot.png|&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;900px&lt;/del&gt;|&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;thumb|center&lt;/del&gt;|Screenshot of volume plotting web interface]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[File:Volume-plotting-screenshot.png|&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;600px&lt;/ins&gt;|&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;left&lt;/ins&gt;|Screenshot of volume plotting web interface]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;At the moment, volume plotting is not hosted online. &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;But you &lt;/del&gt;can get your own copy of the code here:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;At the moment, volume plotting is not hosted online. &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;You &lt;/ins&gt;can get your own copy of the code here:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;syntaxhighlight lang=html&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;syntaxhighlight lang=html&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Thijshijsijsjss</name></author>
	</entry>
	<entry>
		<id>https://pzwiki.wdka.nl/mw-mediadesign/index.php?title=User:Thijshijsijsjss/Pen_Plotting_Panache/Volume_Plotting&amp;diff=256833&amp;oldid=prev</id>
		<title>Thijshijsijsjss: Create volume plotting page with screenshot and code</title>
		<link rel="alternate" type="text/html" href="https://pzwiki.wdka.nl/mw-mediadesign/index.php?title=User:Thijshijsijsjss/Pen_Plotting_Panache/Volume_Plotting&amp;diff=256833&amp;oldid=prev"/>
		<updated>2023-12-30T22:08:57Z</updated>

		<summary type="html">&lt;p&gt;Create volume plotting page with screenshot and code&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;A modification of the code written at Zinecamp 2023 that captures audio and makes HPGL code for a volume plot. This version is more user friendly, with buttons for starting, restarting and copying, and with input length and title. Like this:&lt;br /&gt;
&lt;br /&gt;
[[File:Volume-plotting-screenshot.png|900px|thumb|center|Screenshot of volume plotting web interface]]&lt;br /&gt;
&lt;br /&gt;
At the moment, volume plotting is not hosted online. But you can get your own copy of the code here:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=html&amp;gt;&lt;br /&gt;
&amp;lt;!DOCTYPE html&amp;gt;&lt;br /&gt;
&amp;lt;html&amp;gt;&lt;br /&gt;
&amp;lt;head&amp;gt;&lt;br /&gt;
&amp;lt;title&amp;gt;Noiseplotting!&amp;lt;/title&amp;gt;&lt;br /&gt;
&amp;lt;/head&amp;gt;&lt;br /&gt;
&amp;lt;body&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h1&amp;gt;&amp;lt;/h1&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;This is a small script to capture a snippet of sound and convert it to a volume HPGL code for your penplotting pleasure. &amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Usage:&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Press the button saying 'Start recording'.&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Wait until recording is done, indicated by HPGL code appearing below.&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Copy the HPGL output if you want to use it.&amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Press the button saying 'Rerecord' to repeat the process!!&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;(Don't forget to allow the use of the microphone!)&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Optionally, change the length of the recording: &amp;lt;input type=&amp;quot;text&amp;quot; value=&amp;quot;1000&amp;quot; id=&amp;quot;nr_points_input&amp;quot;&amp;gt; points&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Optionally, change the title of the recording: &amp;lt;input type=&amp;quot;text&amp;quot; value=&amp;quot;ZINECAMP RECORDING&amp;quot; id=&amp;quot;title_input&amp;quot;&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;button onclick=&amp;quot;start_recording()&amp;quot;&amp;gt;Start recording&amp;lt;/button&amp;gt;&lt;br /&gt;
&amp;lt;button onclick=&amp;quot;copy_HPGL()&amp;quot;&amp;gt;Copy HPGL output&amp;lt;/button&amp;gt;&lt;br /&gt;
&amp;lt;button onclick=&amp;quot;clear_HPGL()&amp;quot;&amp;gt;Rerecord&amp;lt;/button&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p id=&amp;quot;output-p&amp;quot;&amp;gt;(HPGL code will appear here)&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/body&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;script&amp;gt;&lt;br /&gt;
&lt;br /&gt;
var noise_values = [];&lt;br /&gt;
var nr_points = 1000;&lt;br /&gt;
console.log(nr_points);&lt;br /&gt;
&lt;br /&gt;
var start = 0.0;&lt;br /&gt;
var end = 0.0;&lt;br /&gt;
&lt;br /&gt;
function start_recording() {&lt;br /&gt;
  nr_points = document.getElementById(&amp;quot;nr_points_input&amp;quot;).value;&lt;br /&gt;
  if (start == 0.0) start = Date.now();&lt;br /&gt;
&lt;br /&gt;
  // capturing template taken from https://stackoverflow.com/questions/52097840/how-to-overwrite-text-in-p-tag-using-javascript&lt;br /&gt;
  navigator.mediaDevices.getUserMedia({&lt;br /&gt;
    audio: true,&lt;br /&gt;
    video: true&lt;br /&gt;
  })&lt;br /&gt;
    .then(function(stream) {&lt;br /&gt;
      const audioContext = new AudioContext();&lt;br /&gt;
      const analyser = audioContext.createAnalyser();&lt;br /&gt;
      const microphone = audioContext.createMediaStreamSource(stream);&lt;br /&gt;
      const scriptProcessor = audioContext.createScriptProcessor(2048, 1, 1);&lt;br /&gt;
&lt;br /&gt;
      analyser.smoothingTimeConstant = 0.8;&lt;br /&gt;
      analyser.fftSize = 1024;&lt;br /&gt;
&lt;br /&gt;
      microphone.connect(analyser);&lt;br /&gt;
      analyser.connect(scriptProcessor);&lt;br /&gt;
      scriptProcessor.connect(audioContext.destination);&lt;br /&gt;
      scriptProcessor.onaudioprocess = function() {&lt;br /&gt;
        const array = new Uint8Array(analyser.frequencyBinCount);&lt;br /&gt;
        analyser.getByteFrequencyData(array);&lt;br /&gt;
        const arraySum = array.reduce((a, value) =&amp;gt; a + value, 0);&lt;br /&gt;
        const average = arraySum / array.length;&lt;br /&gt;
        noise_values.push(Math.round(average));&lt;br /&gt;
        if(noise_values.length &amp;gt;= nr_points) {create_output(); return;}&lt;br /&gt;
        console.log(Math.round(average));&lt;br /&gt;
        // colorPids(average);&lt;br /&gt;
      };&lt;br /&gt;
    })&lt;br /&gt;
    .catch(function(err) {&lt;br /&gt;
    console.error(err);&lt;br /&gt;
  });&lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
function create_output() {&lt;br /&gt;
&lt;br /&gt;
    console.log(noise_values[0]);&lt;br /&gt;
&lt;br /&gt;
    var output = &amp;quot;IN;SC0,100,0,100;PU;DT$;SI0.2,1;&amp;quot;;&lt;br /&gt;
  &lt;br /&gt;
    if (end == 0.0) end = Date.now();&lt;br /&gt;
    output += &amp;quot;PA2,90;LB&amp;quot; + document.getElementById(&amp;quot;title_input&amp;quot;).value + &amp;quot;:$;&amp;quot;;&lt;br /&gt;
    output += &amp;quot;PA2,80;LBstart recording at: &amp;quot; + start + &amp;quot;$;&amp;quot;;&lt;br /&gt;
    output += &amp;quot;PA2,70;LBend recording at:   &amp;quot; + end   + &amp;quot;$;&amp;quot;;&lt;br /&gt;
    output += &amp;quot;PA2,60;LB(seconds after Unix Epoch)$;&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
    for (var x = 0; x &amp;lt; nr_points; x += 1) {&lt;br /&gt;
      output += &amp;quot;PA&amp;quot;+ (x/10) + &amp;quot;,&amp;quot; + noise_values[x] + &amp;quot;;PD;\n&amp;quot;;&lt;br /&gt;
    }&lt;br /&gt;
    output += &amp;quot;PU;&amp;quot;;&lt;br /&gt;
  //  console.log(output);&lt;br /&gt;
&lt;br /&gt;
   document.getElementById(&amp;quot;output-p&amp;quot;).innerText = output;&lt;br /&gt;
   &lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
// inspired by https://www.w3schools.com/howto/howto_js_copy_clipboard.asp&lt;br /&gt;
function copy_HPGL () {&lt;br /&gt;
    // Get the text field&lt;br /&gt;
    var copyText = document.getElementById(&amp;quot;output-p&amp;quot;);&lt;br /&gt;
    // Copy the text inside the text field&lt;br /&gt;
    navigator.clipboard.writeText(copyText.innerText);&lt;br /&gt;
    // Alert the copied text&lt;br /&gt;
    alert(&amp;quot;Copied the text: &amp;quot; + copyText.innerText);&lt;br /&gt;
  } &lt;br /&gt;
&lt;br /&gt;
function clear_HPGL() {&lt;br /&gt;
    noise_values = [];&lt;br /&gt;
    start = 0.0;&lt;br /&gt;
    end = 0.0;&lt;br /&gt;
    nr_points = document.getElementById(&amp;quot;nr_points_input&amp;quot;).value;&lt;br /&gt;
    document.getElementById(&amp;quot;output-p&amp;quot;).innerText = &amp;quot;&amp;quot;;&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;/script&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/html&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Thijshijsijsjss</name></author>
	</entry>
</feed>