﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Millisecond Forums » Millisecond Forums » Inquisit 5  » How to record sound and button presses on the same trial?</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Sat, 05 Dec 2026 15:07:04 GMT</lastBuildDate><ttl>20</ttl><item><title>How to record sound and button presses on the same trial?</title><link>https://forums.millisecond.com/Topic29393.aspx</link><description>Hello,&lt;br/&gt;&lt;br/&gt;I am trying to record audio and also record button presses on the same trial. I record sound using soundcapture, and record button presses using keyboard as the inputdevice.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;The problem is if I want to record what buttons subjects press by using validresponse, then the trial ends as soon as they press a keyboard button, thus truncating the recording.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;How do I continue recording even after a keyboard button has been pressed? &lt;br/&gt;&lt;br/&gt;Thank you for your time,&lt;br/&gt;Abby&lt;br/&gt;&lt;br/&gt;current code below &lt;br/&gt;&amp;lt;trial mytrial&amp;gt; &lt;br/&gt;/ soundcapture = true&lt;br/&gt;/ inputdevice = keyboard&lt;br/&gt;/ stimulustimes = [0=target]&lt;br/&gt;/ trialduration = 2000&lt;br/&gt;/ validresponse =(23, 36, 37, 38)&lt;br/&gt;&amp;lt;/trial&amp;gt;</description><pubDate>Tue, 14 Jul 2020 20:14:05 GMT</pubDate><dc:creator>AbigailNovick</dc:creator></item><item><title>RE: How to record sound and button presses on the same trial?</title><link>https://forums.millisecond.com/Topic29396.aspx</link><description>&lt;blockquote data-id="29395" class="if-quote-wrapper" unselectable="on" data-guid="1594757607542" contenteditable="false" id="if_insertedNode_1594757606770"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="29395" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="29395" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="29395" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - 7/14/2020&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-29395"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;&lt;blockquote data-id="29393" class="if-quote-wrapper" unselectable="on" data-guid="1594757607542" id="if_insertedNode_1594756798458" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="29393" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="29393" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="29393" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;AbigailNovick - 7/14/2020&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-29393"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;Hello,&lt;br/&gt;&lt;br/&gt;I am trying to record audio and also record button presses on the same trial. I record sound using soundcapture, and record button presses using keyboard as the inputdevice.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;The problem is if I want to record what buttons subjects press by using validresponse, then the trial ends as soon as they press a keyboard button, thus truncating the recording.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;How do I continue recording even after a keyboard button has been pressed? &lt;br/&gt;&lt;br/&gt;Thank you for your time,&lt;br/&gt;Abby&lt;br/&gt;&lt;br/&gt;current code below &lt;br/&gt;&amp;lt;trial mytrial&amp;gt; &lt;br/&gt;/ soundcapture = true&lt;br/&gt;/ inputdevice = keyboard&lt;br/&gt;/ stimulustimes = [0=target]&lt;br/&gt;/ trialduration = 2000&lt;br/&gt;/ validresponse =(23, 36, 37, 38)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="29393"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/blockquote&gt;&lt;br/&gt;You do something like&lt;br/&gt;&lt;br/&gt;&amp;lt;trial mytrial&amp;gt;&lt;br/&gt;/ soundcapture = true&lt;br/&gt;/ inputdevice = keyboard&lt;br/&gt;/ stimulustimes = [0=target; &lt;strong&gt;2000=target&lt;/strong&gt;]&lt;br/&gt;&lt;strong&gt;/ responseinterrupt = frames&lt;/strong&gt;&lt;br/&gt;&lt;strong&gt;/ beginresponsetime = 0&lt;/strong&gt;&lt;br/&gt;/ trialduration = 2000&lt;br/&gt;/ validresponse =(23, 36, 37, 38)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="29395"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/blockquote&gt;&lt;br/&gt;This is perfect!!!! Just tried it out.Thank you so much, Dave :)</description><pubDate>Tue, 14 Jul 2020 20:14:05 GMT</pubDate><dc:creator>AbigailNovick</dc:creator></item><item><title>RE: How to record sound and button presses on the same trial?</title><link>https://forums.millisecond.com/Topic29395.aspx</link><description>&lt;blockquote data-id="29393" class="if-quote-wrapper" unselectable="on" data-guid="1594756800114" id="if_insertedNode_1594756798458" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="29393" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="29393" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="29393" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;AbigailNovick - 7/14/2020&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-29393"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;Hello,&lt;br/&gt;&lt;br/&gt;I am trying to record audio and also record button presses on the same trial. I record sound using soundcapture, and record button presses using keyboard as the inputdevice.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;The problem is if I want to record what buttons subjects press by using validresponse, then the trial ends as soon as they press a keyboard button, thus truncating the recording.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;How do I continue recording even after a keyboard button has been pressed? &lt;br/&gt;&lt;br/&gt;Thank you for your time,&lt;br/&gt;Abby&lt;br/&gt;&lt;br/&gt;current code below &lt;br/&gt;&amp;lt;trial mytrial&amp;gt; &lt;br/&gt;/ soundcapture = true&lt;br/&gt;/ inputdevice = keyboard&lt;br/&gt;/ stimulustimes = [0=target]&lt;br/&gt;/ trialduration = 2000&lt;br/&gt;/ validresponse =(23, 36, 37, 38)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="29393"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/blockquote&gt;&lt;br/&gt;You do something like&lt;br/&gt;&lt;br/&gt;&amp;lt;trial mytrial&amp;gt;&lt;br/&gt;/ soundcapture = true&lt;br/&gt;/ inputdevice = keyboard&lt;br/&gt;/ stimulustimes = [0=target; &lt;strong&gt;2000=target&lt;/strong&gt;]&lt;br/&gt;&lt;strong&gt;/ responseinterrupt = frames&lt;/strong&gt;&lt;br/&gt;&lt;strong&gt;/ beginresponsetime = 0&lt;/strong&gt;&lt;br/&gt;/ trialduration = 2000&lt;br/&gt;/ validresponse =(23, 36, 37, 38)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;</description><pubDate>Tue, 14 Jul 2020 20:06:08 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>