{"id":27771,"date":"2024-04-05T13:35:29","date_gmt":"2024-04-05T11:35:29","guid":{"rendered":"https:\/\/demdlx704as001.ad.harman.com\/?p=27771"},"modified":"2024-07-03T15:42:14","modified_gmt":"2024-07-03T13:42:14","slug":"inputs","status":"publish","type":"post","link":"https:\/\/audioworx.transfunnel.co\/old\/?p=27771","title":{"rendered":"Inputs"},"content":{"rendered":"<p>Inputs provide data to outputs for processing. They can be realtime sources or files that playback pre-recorded sequences.<\/p>\n<p><img fetchpriority=\"high\" decoding=\"async\" class=\"alignnone size-full wp-image-30047\" src=\"https:\/\/audioworx.transfunnel.co\/old\/wp-content\/uploads\/2024\/04\/SFnew_input.png\" alt=\"\" width=\"564\" height=\"314\" \/><\/p>\n<p><strong>Toggle:<\/strong> Simply a checkbox, disabled is 0, enabled is 1.<\/p>\n<p><strong>Constant:\u00a0<\/strong>Input a value that is convertable to float32 and it will be output continually.<\/p>\n<p><strong>Sim: <\/strong>This input uses the simulation component which can be configured via the\u00a0<em>Car Setup<\/em>\u00a0tab. Note this input is not completed and does not quite perform as expected but can still be used to generate interesting signals to test with, they just don\u2019t behave physically accurately.<\/p>\n<ul>\n<li>RPM \u2013 Current RPM of the engine<\/li>\n<li>Torque \u2013 Current Torque output of the engine (not transmission)<\/li>\n<li>Throttle \u2013 Current throttle input of the engine.<\/li>\n<li>Speed \u2013 Current speed of the vehicle<\/li>\n<li>Gear \u2013 Current gear \u2013 output continually not on change<\/li>\n<li>Gear Up \u2013 fires once when gear is changed up<\/li>\n<li>Gear Down \u2013 fires once when gear is changed down<\/li>\n<li>Engine Start \u2013 fires once when engine starts<\/li>\n<li>Engine Stop fires once when engien stops<\/li>\n<\/ul>\n<p><strong>CAN: <\/strong>Uses the PEAK PCAN device. Realtime CAN connection using PEAK sdk. Configure using the PEAK Panel button \u2013 configuration not covered here. You also need to load a DBC file for the network you are connected to. After this you can get all instances of the selected parameter, when they come in.<\/p>\n<p><strong>Traces:\u00a0<\/strong>Grouped together for easier explanation. These all load recorded or generated files and play through them according to an internal timer. All these files have timestamps associated with parameters and those are used to determine when a parameter is output. The user will select which (of potentially many) parameters in the file is used for a given signal. The file can be loaded into multiple signals at once (its only loaded by the application once) so the user can select multiple parameters from a single file.<\/p>\n<p><strong>Trace (vector asc):\u00a0<\/strong>Vector CAN export. This signal also needs a DBC file loaded in order to be parsed. Note that its possible to have a mismatching DBC file that still matches ID\u2019s in the trace. Be sure they REALLY match or your outputs will make no sense.<\/p>\n<p><strong>Trace (trc):\u00a0<\/strong>Peak CAN export. This signal also needs a DBC file loaded in order to be parsed. Note that its possible to have a mismatching DBC file that still matches ID\u2019s in the trace. Be sure they REALLY match or your outputs will make no sense.<\/p>\n<p><strong>Trace (HDF xls):\u00a0<\/strong>Excel file created by Head Acoustics software. This can easily be generated by the user as well.<\/p>\n<p><strong>Trace (raw asc):\u00a0<\/strong>Raw ascii file also exported by Head Acoustics. This file has no metadata, so it isn\u2019t very fun to work with.<\/p>\n<p><strong>SinGen:<\/strong> Generates a sine wave with the magnitude specified and an offset of 0. Phase offset can be applied.<\/p>\n<p>If you use the\u00a0<em>Dynamic<\/em>\u00a0mode, then the frequency setting becomes a ratio of the selected signal INPUT (not output). The indices start at zero.<\/p>\n<p><strong>Control Poller: <\/strong>Requests the value of a control from a connected xAF device. Uses the loaded list of controls (Tools-&gt;Controls) to display the available controls. Has a configurable polling period which defaults to 10ms.<\/p>\n<p><strong>MIDI Input:\u00a0<\/strong>Uses detected MIDI devices. User needs to select a device, and a type of event (Note On, Note Off, Control Change, and None).<\/p>\n<ul>\n<li><strong>Note On:<\/strong> Sends Fires while the note is active, else 0.<\/li>\n<li><strong>NoteOff:<\/strong> Fires a when the note ends, else outputs 0.<\/li>\n<li><strong>ControlChange<\/strong>: Fires on any change of a control.<\/li>\n<li><strong>None:<\/strong> Nothing.<\/li>\n<\/ul>\n<p>For each of these types you will get an associated list of sub-types. For notes you get piano keys, for controls you get a list of some named control types but many numbers. You will have to discover which match your device\u2019s controls. You can use the Input section (\u2018Select Input\u2019 -&gt; \u2018Midi\u2019 then look at \u2018Real-time data\u2019) to see control messages as they come in from the device.<\/p>\n<p>Since MIDI is only 0-127 \u2013 we have scaling (multiplying) and offset (adding) fields so you can move the value into a useful range. Scaling is applied first. E.g. input value of 10 from midi. Scale is 20 so the value becomes 200. Offset is -40 so the value becomes 160.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Inputs provide data to outputs for processing. They can be realtime sources or files that playback pre-recorded sequences. Toggle: Simply a checkbox, disabled is 0, enabled is 1. Constant:\u00a0Input a value that is convertable to float32 and it will be output continually. Sim: This input uses the simulation component which can be configured via the\u00a0Car [&hellip;]<\/p>\n","protected":false},"author":107,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ocean_post_layout":"","ocean_both_sidebars_style":"","ocean_both_sidebars_content_width":0,"ocean_both_sidebars_sidebars_width":0,"ocean_sidebar":"0","ocean_second_sidebar":"0","ocean_disable_margins":"enable","ocean_add_body_class":"","ocean_shortcode_before_top_bar":"","ocean_shortcode_after_top_bar":"","ocean_shortcode_before_header":"","ocean_shortcode_after_header":"","ocean_has_shortcode":"","ocean_shortcode_after_title":"","ocean_shortcode_before_footer_widgets":"","ocean_shortcode_after_footer_widgets":"","ocean_shortcode_before_footer_bottom":"","ocean_shortcode_after_footer_bottom":"","ocean_display_top_bar":"default","ocean_display_header":"default","ocean_header_style":"","ocean_center_header_left_menu":"0","ocean_custom_header_template":"0","ocean_custom_logo":0,"ocean_custom_retina_logo":0,"ocean_custom_logo_max_width":0,"ocean_custom_logo_tablet_max_width":0,"ocean_custom_logo_mobile_max_width":0,"ocean_custom_logo_max_height":0,"ocean_custom_logo_tablet_max_height":0,"ocean_custom_logo_mobile_max_height":0,"ocean_header_custom_menu":"0","ocean_menu_typo_font_family":"0","ocean_menu_typo_font_subset":"","ocean_menu_typo_font_size":0,"ocean_menu_typo_font_size_tablet":0,"ocean_menu_typo_font_size_mobile":0,"ocean_menu_typo_font_size_unit":"px","ocean_menu_typo_font_weight":"","ocean_menu_typo_font_weight_tablet":"","ocean_menu_typo_font_weight_mobile":"","ocean_menu_typo_transform":"","ocean_menu_typo_transform_tablet":"","ocean_menu_typo_transform_mobile":"","ocean_menu_typo_line_height":0,"ocean_menu_typo_line_height_tablet":0,"ocean_menu_typo_line_height_mobile":0,"ocean_menu_typo_line_height_unit":"","ocean_menu_typo_spacing":0,"ocean_menu_typo_spacing_tablet":0,"ocean_menu_typo_spacing_mobile":0,"ocean_menu_typo_spacing_unit":"","ocean_menu_link_color":"","ocean_menu_link_color_hover":"","ocean_menu_link_color_active":"","ocean_menu_link_background":"","ocean_menu_link_hover_background":"","ocean_menu_link_active_background":"","ocean_menu_social_links_bg":"","ocean_menu_social_hover_links_bg":"","ocean_menu_social_links_color":"","ocean_menu_social_hover_links_color":"","ocean_disable_title":"default","ocean_disable_heading":"default","ocean_post_title":"","ocean_post_subheading":"","ocean_post_title_style":"","ocean_post_title_background_color":"","ocean_post_title_background":0,"ocean_post_title_bg_image_position":"","ocean_post_title_bg_image_attachment":"","ocean_post_title_bg_image_repeat":"","ocean_post_title_bg_image_size":"","ocean_post_title_height":0,"ocean_post_title_bg_overlay":0.5,"ocean_post_title_bg_overlay_color":"","ocean_disable_breadcrumbs":"default","ocean_breadcrumbs_color":"","ocean_breadcrumbs_separator_color":"","ocean_breadcrumbs_links_color":"","ocean_breadcrumbs_links_hover_color":"","ocean_display_footer_widgets":"default","ocean_display_footer_bottom":"default","ocean_custom_footer_template":"0","footnotes":"","ocean_post_oembed":"","ocean_post_self_hosted_media":"","ocean_post_video_embed":"","ocean_link_format":"","ocean_link_format_target":"self","ocean_quote_format":"","ocean_quote_format_link":"post","ocean_gallery_link_images":"on","ocean_gallery_id":[]},"categories":[357],"tags":[],"coauthors":[292],"_links":{"self":[{"href":"https:\/\/audioworx.transfunnel.co\/old\/index.php?rest_route=\/wp\/v2\/posts\/27771"}],"collection":[{"href":"https:\/\/audioworx.transfunnel.co\/old\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/audioworx.transfunnel.co\/old\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/audioworx.transfunnel.co\/old\/index.php?rest_route=\/wp\/v2\/users\/107"}],"replies":[{"embeddable":true,"href":"https:\/\/audioworx.transfunnel.co\/old\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=27771"}],"version-history":[{"count":7,"href":"https:\/\/audioworx.transfunnel.co\/old\/index.php?rest_route=\/wp\/v2\/posts\/27771\/revisions"}],"predecessor-version":[{"id":30159,"href":"https:\/\/audioworx.transfunnel.co\/old\/index.php?rest_route=\/wp\/v2\/posts\/27771\/revisions\/30159"}],"wp:attachment":[{"href":"https:\/\/audioworx.transfunnel.co\/old\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=27771"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/audioworx.transfunnel.co\/old\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=27771"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/audioworx.transfunnel.co\/old\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=27771"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/audioworx.transfunnel.co\/old\/index.php?rest_route=%2Fwp%2Fv2%2Fcoauthors&post=27771"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}