<commit_before>/* GStreamer
 * Copyright (C) 2012 <NAME> <<EMAIL>>
 *
 * sidsyn.cc: c64 sid synthesizer
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public
 * License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Library General Public License for more details.
 *
 * You should have received a copy of the GNU Library General Public
 * License along with this library; if not, see <http://www.gnu.org/licenses/>.
 */
/**
 * SECTION:sidsyn
 * @title: GstBtSidSyn
 * @short_description: c64 sid synthesizer
 *
 * A synthesizer based on the RSID emulation library of the C64 sound chip.
 * The element provides a sound generator with 3 voices. It implements a couple
 * of effects (see #GstBtSidSynEffect), which are well known from trackers such
 * as pitch slides, arpeggio and vibrato.
 *
 * For technical details see:
 *
 * * <http://en.wikipedia.org/wiki/MOS_Technology_SID#Technical_details>
 * * <http://www.waitingforfriday.com/index.php/Commodore_SID_6581_Datasheet>
 *
 * <refsect2>
 * <title>Example launch line</title>
 * |[
 * gst-launch sidsyn num-buffers=1000 voice0::note="c-4" ! autoaudiosink
 * ]| Render a beep.
 * </refsect2>
 */

#ifdef HAVE_CONFIG_H
#include "config.h"
#endif

#include <math.h>
#include <stdio.h>

#include <libgstbuzztrax/childbin.h>
#include "libgstbuzztrax/propertymeta.h"
#include "sidsyn.h"

//#define PALFRAMERATE 50
#define PALCLOCKRATE 985248
//#define NTSCFRAMERATE 60
#define NTSCCLOCKRATE 1022727

#define M_PI_M2 ( M_PI + M_PI )
#define NUM_STEPS 6

#define GST_CAT_DEFAULT sid_syn_debug
GST_DEBUG_CATEGORY (GST_CAT_DEFAULT);<commit_msg>sidsyn: use a markdown variant that is backwards compat<commit_after>/* GStreamer
 * Copyright (C) 2012 <NAME> <<EMAIL>>
 *
 * sidsyn.cc: c64 sid synthesizer
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public
 * License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Library General Public License for more details.
 *
 * You should have received a copy of the GNU Library General Public
 * License along with this library; if not, see <http://www.gnu.org/licenses/>.
 */
/**
 * SECTION:sidsyn
 * @title: GstBtSidSyn
 * @short_description: c64 sid synthesizer
 *
 * A synthesizer based on the RSID emulation library of the C64 sound chip.
 * The element provides a sound generator with 3 voices. It implements a couple
 * of effects (see #GstBtSidSynEffect), which are well known from trackers such
 * as pitch slides, arpeggio and vibrato.
 *
 * For technical details see:
 *
 * * [SID at wikipedia](http://en.wikipedia.org/wiki/MOS_Technology_SID#Technical_details)
 * * [SID datasheet](http://www.waitingforfriday.com/index.php/Commodore_SID_6581_Datasheet)
 *
 * <refsect2>
 * <title>Example launch line</title>
 * |[
 * gst-launch sidsyn num-buffers=1000 voice0::note="c-4" ! autoaudiosink
 * ]| Render a beep.
 * </refsect2>
 */

#ifdef HAVE_CONFIG_H
#include "config.h"
#endif

#include <math.h>
#include <stdio.h>

#include <libgstbuzztrax/childbin.h>
#include "libgstbuzztrax/propertymeta.h"
#include "sidsyn.h"

//#define PALFRAMERATE 50
#define PALCLOCKRATE 985248
//#define NTSCFRAMERATE 60
#define NTSCCLOCKRATE 1022727

#define M_PI_M2 ( M_PI + M_PI )
#define NUM_STEPS 6

#define GST_CAT_DEFAULT sid_syn_debug
GST_DEBUG_CATEGORY (GST_CAT_DEFAULT);
{'fraction_non_alphanumeric': 0.09577963103361133, 'fraction_numerical': 0.021733636593378822, 'mean_word_length': 4.392370572207084, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 27, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1316834', 'n_tokens_mistral': 1384, 'n_tokens_neox': 1283, 'n_words': 450}